true, but i think it's worth mentioning that OOP in JS is vastly different from OOP languages such as e.g. java. understanding the concept of the prototype chain is imo more important than learning the syntactic sugar keyword class and what it does (i agree a lot with kyle simpsons opinion on this, it's very misleading for people coming from different programming languages)
it's very misleading for people coming from different programming languages
Depends on which different language we're talking about. JavaScript's classes work surprisingly similar to Python's or Ruby's classes. JavaScript and Python classes side-by-side
1
u/Mydrax May 28 '19
When you learn OOP in JS, you will indefinitely come across the prototype chain, won't you?