when an empty object is summed with another data, such as
{} + []
The empty object in front of is generally treated as an empty block of code and becomes
+ [] // 0
so when empty objects and empty objects are summed
{} + {}
an empty object is treated as a code block is equal to
+ {}
the result should be NaN.
but in Chrome
{} + {} // "[object Object][object Object]"
obviously the first empty object is not treated as a code block.
in other browsers such as Firefox or IE
{} + {}
the results are all NaN.
I don"t quite understand why it is different inChrome.