Hacker News new | ask | show | jobs
by TazeTSchnitzel 4013 days ago
No, it's just syntactic sugar. They're not a basic construct of the language. JavaScript has objects and it has prototypes on objects. ES6 classes are sugar over this. Classes in other languages, however, are the basic construct.
1 comments

Why is this distinction important when it comes to actually using the language?
Because when you run into OOP that doesn't use the sugar, you'll have trouble if you'd only learned "class", rather than what it's syntactic sugar for.