Last active
September 26, 2015 13:23
-
-
Save qetr1ck-op/54c9dbea765318e4a2c2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let animal = {}, | |
rabbit = {}; | |
Object.setPrototypeOf(rabbit, animal); // rabbit.__proto__ = animal | |
console.log(Object.getPrototypeOf(rabbit) === animal ) // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment