Skip to content

Instantly share code, notes, and snippets.

@ivankisyov
Last active December 24, 2018 11:33
Show Gist options
  • Save ivankisyov/51d4451e6b44b4a0feaa45c2c286aa30 to your computer and use it in GitHub Desktop.
Save ivankisyov/51d4451e6b44b4a0feaa45c2c286aa30 to your computer and use it in GitHub Desktop.
Prototype Property in JS

Prototype Property in JS

When a new function is created a new property is added to it. That property is named prototype. It's an object and initially has two properties:

  • constructor: which points to the function itself;
  • __proto__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment