Skip to content

Instantly share code, notes, and snippets.

@eamon0989
Last active July 26, 2021 13:18
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 eamon0989/7d2e40562268140a13721e1a3de8ee4f to your computer and use it in GitHub Desktop.
Save eamon0989/7d2e40562268140a13721e1a3de8ee4f to your computer and use it in GitHub Desktop.
// This is a continuation of the previous code block
Object.prototype.test = `I'm a property of Object.prototype`;
console.log(Object.prototype); // [Object: null prototype]
// { test: "I'm a property of Object.prototype" } */
console.log(Factory.prototype.test); // I'm a property of Object.prototype
console.log(Factory.prototype); // {}
console.log(descendant.test); // I'm a property of Object.prototype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment