Earlier quoted context omitted.
perhaps you guys are arguing semantics. i think it's fair to say javascript does not have traditional inheritance or classes. crockford seems to agree [0], perhaps i don't understand the argument. [0] http://javascript.crockford.com/javascript.html
What is a "class" in this context? Let's define it. As a rough strawman to move forward, let's say that a "Class" is a programming object consisting of: - A constructor method. - A set of properties and methods - Optionally, a parent Class from which it inherits properties and methods, which may be overridden. And that, when invoked, a "Class" returns an Object which is said to be an "instance of" that Class. The con…
classes create new types. this is precisely why MostAwesomeDude said "JavaScript is prototyped, not inherited, and doesn't permit the creation of new types". if you want to omit that from your definition of class then fine. but you're no longer talking about the same thing as MostAwesomeDude.