DEV Community

Discussion on: How Classes work in JavaScript

Collapse
 
maxart2501 profile image
Massimo Artizzu

Classes are the syntactic sugar

I'd say they mostly are, but they aren't just sugar. There are things you can't polyfill in ES5. Namely, you can't effectively extend native classes like Date or Error without class.

Collapse
 
Sloan, the sloth mascot
Comment deleted