Note that that has nothing to do with math. It has to do with braces being used for both blocks and object literals.
Of course, I'm not too happy about the automatic coercion of everything and anything to either strings or numbers, but if you want consistency, try parentheses, or a + [], where a = {}.
You do if you use react.
> omit `;` or use `==`.
Mistakes are made all the time.
> Also JavaScript is commutative as long as FP64 is.
Nope.
$ node > [] + {} '[object Object]' > {} + [] 0
> Out of curiosity, what's the pain with removing an index using `splice(index, 1)`?
Finding it. Remembering it. Getting it right. Reading it back.
Remove the 3rd and get it in Python:
res = a.pop(4)
In JS:
var res = a[4]; a.splice(4, 1); // usually a comment to remind you that you pop
It's verbose, ugly, unintuitive.
It's like this : https://xkcd.com/1168/
But for JS.