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
2
u/DerGernTod May 28 '19
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
classand what it does (i agree a lot with kyle simpsons opinion on this, it's very misleading for people coming from different programming languages)