I apologize in advance because this is somehow a silly question, but I just need to know WHY this happens and I didn't find the answer. So, there you go, stack overflow!
In this video (which I can't recommend enough) around 2:00 mark the guys shows that in Javascript:
[] + [] = empty string
[] + {} = object
{} + [] = 0
{} + {} = NaN
Anyone knows why?
[] + {}is the string representation of an object, which is usually something like "[object Object]" jsconsole.com/?typeof%20(%5B%5D%20%2B%20%7B%7D)