Skip to content

Instantly share code, notes, and snippets.

@sag1v
Created November 25, 2019 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sag1v/42f6ef6b8bc5b3d1abedfe1f79728b5c to your computer and use it in GitHub Desktop.
Save sag1v/42f6ef6b8bc5b3d1abedfe1f79728b5c to your computer and use it in GitHub Desktop.
Markdium-JavaScript - The prototype chain in depth
function double(num) {
return num * 2;
}
double.someProp = 'Hi there!';
double(5); // 10
double.someProp // Hi there!
double.prototype // {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment