DEV Community

Discussion on: What javascript would look like if they could make breaking changes in it.

Collapse
 
fynn profile image
Fynn Becker

The whole Date situation would probably be thrown away and build from scratch with a lot more convenience stuff. Maybe the best parts of moment.js and date-fns as part of the core language.

And switch would become a bit more JavaScript-y, so devs won't be afraid to use it more 😁 The colons really look out of place in regard to the rest of the language.

Collapse
 
itsjzt profile image
Saurabh Sharma • Edited

Yeah switch is like the unused part of language, along with with