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