DEV Community

loading...

Discussion on: Replacing JavaScript Classes With The Module Design Pattern

Collapse
dillonheadley profile image
Dillon Headley

I thought class in js was basically syntax sugar. You can use the ‘new’ keyword without the ‘class’ keyword for similar effect.