5 ms·
JS is not object oriented. A prototype is not the same thing as an object. There are no classes in JS.
by scriptkiddy 10y ago
JS is not object oriented. A prototype is not the same thing as an object. There are no classes in JS.
- renku 10y agoWhat 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.
- talyssonoc 10y agoOk, 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.