Re:New ES2019 JavaScript features
by boomlinde on Friday September 27, 2019 @05:03AM
(#21089862)
JS is and always was prototype based. The class keyword is as far as I know just syntax sugar that creates a prototype chain and a new-able function that assigns the prototype to self.
[ Parent
| on HN ]
The '#privateVar' syntax means that classes are no longer simply syntax sugar, unfortunately.