Renaming JavaScript Objects
A brief explanation of testing object properties and how those objects are copied in JavaScript.
javascript:var foo = {baz: 'bizzer'};
var bar = foo;
bar.baz = 'bazzer';
alert(foo.baz + ' == ' + bar.baz);
As you can see the object’s property of ‘baz’ is updated in both foo object and bar object (a copy or reference to foo).



















