Assertion: prototype | /r/HasProperty | property
Facets:
value: on a constructor function
type: LOCATION
Source sentences:
text: Using the prototype Property
text: prototype instead is a property containing an object on which you define members that you want to be inherited.
text: Again, prototype is just a property that every function in JavaScript has and, as we saw above, it allows us to share methods across all instances of a function.
text: The prototype is a property on a constructor function that sets what will become the __proto__ property on the constructed object.
text: To see how prototype-based (or prototypal) inheritance works, let’s look at an example (with invented syntax for specifying the [[Prototype]] property):