Skip to content

Instantly share code, notes, and snippets.

@sag1v
Created November 25, 2019 14:27
Show Gist options
  • Save sag1v/6c89d9da0dc995c0b3c51c0609fe114e to your computer and use it in GitHub Desktop.
Save sag1v/6c89d9da0dc995c0b3c51c0609fe114e to your computer and use it in GitHub Desktop.
Markdium-JavaScript - The prototype chain in depth
const player1 = {
name: 'Sagiv',
}
player1.userName = 'sag1v';
player1['score'] = 700;
player1.setScore = function(newScore) {
player1.score = newScore;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment