Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is very C# specific.

In C++, you can return a const reference. In javascript, Array is a class (and you can add functions to the prototype, but probably shouldn't).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: