A: var obj1 = obj2 = new Object();
and
B: var obj1 = new Object(),
obj2 = new Object();
There are two different assignment methods, and the results are different. Be careful~
A will point two objects to the same memory address, resulting in the same content of the two objects.
var t1 = t2 = new Object();t1.name = 'hello';t2.name = 'kao';t1.name = null;alert(t2.name); // The result is null
B's will not