DEV Community

Discussion on: Javascript classes : class, constructor, new, extends, super

Collapse
 
jonrandy profile image
Jon Randy 🎖️

Just because JS uses prototypal inheritance rather than class based inheritance, doesn't mean it isn't object-oriented

Collapse
 
hssanbzlm profile image
Hssan Bouzlima

But the manner of how object-oriented paradigm is achieved is different than the classical object-oriented programming language like java.

Collapse
 
jcubic profile image
Jakub T. Jankiewicz

Note that Java way is not the only way. I think that the first OOP was in smalltalk that was completely different than Java. So you can't use that JS is not real OOP because it's not like Java. that way you can say that JS is not functional because it's not like Haskell, which make no sense at all. JavaScript is Object oriented even without ES6 classes, but use different approach then Java.