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).
Posted in JavaScript
Ronnie
October 7, 2008 at 10:37 pm
Sorry…
Ronnie
October 7, 2008 at 10:37 pm
Sorry…