You can't if you use react.
Besides, JS is the only language I know where half of it is recommended to not be used.
> If you insert the semicolons yourself and don't depend on the auto insertions, you don't have to worry about the edge cases where the lack of a semicolon would introduce a bug.
But that's not the point. The point is my students will forget the semicolon in some code that is not properly checked, and it will work. Most of the time. Until it doesn't.
> Use === if you want to be explicit.
No shit sherlock ? But again, half of the language is forbidden. And you know somebody is going to write != instead of !== one day, tired.
> The commutativity is the same like in classic Maths I think, it's just he floating point errors that mess things up.
Nope. Nope. Nope. Nope.
$ node > [] + {} '[object Object]' > {} + [] 0
> We have .toString, parseInt, atob, btoa, etc.
Come on, you never used Java, Perl, Ruby, Python? Any language with decent string formatting ? That doesn't need a leftpad dependancy ? That can format date without importing 34ko of moment.js ?
> The rest can be implemented in user-land: var md5 = require("md5")
And then you get the current 3Mo pages we all hate. Are you even serious with your arguments or is it trolling ?
> I think it's fine. If you use a named list {} you can "delete foo[bar]"
A mapping is not a list. It doesn't perform the same. You can't push and unshift. You can map on it without Object.stuff. Length is a costly operation. Concat without spread is a pain. And how do you get the "next 3 elements after the 2nd" ?