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

__proto__ !== prototype

One points to the parent of an object and the other points to the object's prototype (which in turn has it's own `__proto__ property). Accessing `prototype` is just fine, but if you want to access `__proto__` then you should use `Object.create()` instead.



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

Search: