Hacker News new | ask | show | jobs
by moretti 3923 days ago
Actually, if you leave off the "new" you get a TypeError:

    TypeError: Class constructors cannot be invoked without 'new'
1 comments

Depends on your browser and/or transpiler :-)

That's definitely much nicer than the old way.