Skip to content

Instantly share code, notes, and snippets.

@juanpicado
Created September 21, 2016 06:22
Show Gist options
  • Save juanpicado/f8a77a7f43eb80bb6222ddf00f65da0a to your computer and use it in GitHub Desktop.
Save juanpicado/f8a77a7f43eb80bb6222ddf00f65da0a to your computer and use it in GitHub Desktop.
function Foo(x, y) {
this.x = x;
this.y = y;
}
var A = new Foo(1,3);
var B = new Foo(2,4);
// we modify the object
B.z = 4;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment