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

It does but there are other ways to create objects (even using prototypal inheritance) in JavaScript that are pretty popular in the wild (Object.create and object literals with {} for example). The code behind this and the constructors, etc, would need to be rather different though (that is, you're right, you can't just drop new and expect it to work as-is.)


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

Search: