7 ms·
Actually, if you leave off the "new" you get a TypeError: TypeError: Class constructors cannot be invoked without 'new'
by moretti 11y ago
Actually, if you leave off the "new" you get a TypeError:
TypeError: Class constructors cannot be invoked without 'new'
- azernik 11y agoDepends on your browser and/or transpiler :-) That's definitely much nicer than the old way.