Skip to content

Instantly share code, notes, and snippets.

@sag1v
Created November 25, 2019 14:27
Show Gist options
  • Save sag1v/9491cee13432a84a8cc38d72a338b78b to your computer and use it in GitHub Desktop.
Save sag1v/9491cee13432a84a8cc38d72a338b78b to your computer and use it in GitHub Desktop.
Markdium-JavaScript - The prototype chain in depth
Player {
userName: "sag1v",
score: 700,
__proto__: Player.prototype {
setScore: ƒ
}
}
PaidPlayer {
userName: "sarah",
score: 900,
balance: 5,
__proto__: PaidPlayer.prototype:{
setUserName: ƒ,
__proto__: Player.prototype {
setScore: ƒ
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment