Skip to content

Instantly share code, notes, and snippets.

@awilson28
Last active August 29, 2015 14:13
Show Gist options
  • Save awilson28/fbad287b0caf083bb5c1 to your computer and use it in GitHub Desktop.
Save awilson28/fbad287b0caf083bb5c1 to your computer and use it in GitHub Desktop.
function Shelter () {}
var cabin = new Shelter()
cabin.__proto__              // Shelter {}
function Residence () {}
cabin.__proto__ = Residence.prototype
cabin.__proto__             // Residence {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment