It\'s commonly known that {} is shorter way to define an object like [] is for an array.
{}
[]
But now I am wondering why:
{} !=
{} != {} is true because both {}'s are completely different objects. However, variables that are referencing the same object hold equality:
{} != {}
var a = {}, b = a; assert( a == b )