Skip to content

Instantly share code, notes, and snippets.

@dylanbathurst
Created April 9, 2012 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dylanbathurst/2347074 to your computer and use it in GitHub Desktop.
Save dylanbathurst/2347074 to your computer and use it in GitHub Desktop.
var objOne = {};
var objTwo = {};
objOne.foo = {};
objOne.foo.bar = 100;
objTwo = objOne;
objTwo.foo.bar = 200;
console.log(objOne); // 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment