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

JS is not object oriented. A prototype is not the same thing as an object. There are no classes in JS.


What you mean to say: JavaScript is not class-oriented.

Sure, there are features that JavaScript lacks compared to other object-oriented languages, but saying that it's not object-oriented is like saying that it's statically typed. It's just wrong, the language is full of objects.


Ok, tell me where on "object-oriented programming" is the word "class". Objects are not necessarily related to classes. And yes, a prorotype is a object that you can extend from, as well as from any other object, like prototype-based OOP works.




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

Search: