{} + [] is not 0
The thing to keep in mind about coercing objects like arrays to primitives, is they usually become strings first. So coercing an empty object to a number goes like this:+
The thing to keep in mind about coercing objects like arrays to primitives, is they usually become strings first. So coercing an empty object to a number goes like this:+