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 = {}.
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 = {}.