Created
November 25, 2019 14:27
-
-
Save sag1v/739d8b3978b940bc16a662f556078140 to your computer and use it in GitHub Desktop.
Markdium-JavaScript - The prototype chain in depth
This file contains 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
player1 { | |
userName: "sag1v", | |
score: 700, | |
__proto__: playerFunctions { | |
setScore: ƒ | |
} | |
} | |
paidPlayer { | |
userName: "sarah", | |
score: 900, | |
balance: 5, | |
__proto__: paidPlayerFunctions { | |
setUserName: ƒ, | |
__proto__: playerFunctions { | |
setScore: ƒ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment