News for hackers. Stuff that matters.
Re:JavaScript for People Who Hate JavaScript by gvx on Wednesday August 09, 2017 @09:22AM (#14968450)
> $ node > [] + {} '[object Object]' > {} + [] 0

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

There are no comments on this comment yet.