Skip to content

Instantly share code, notes, and snippets.

@evanrmurphy
Last active August 29, 2015 13:59
Show Gist options
  • Save evanrmurphy/10503100 to your computer and use it in GitHub Desktop.
Save evanrmurphy/10503100 to your computer and use it in GitHub Desktop.
function f() {}
f.prototype.a = 1
// f.prototype.a is 1
x = Object.create(f)
// x.prototype.a is 1
x.prototype.a = 2
// both x.prototype.a and f.prototype.a are 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment