What is the difference between the [[Prototype]] internal slot and the prototype property on a function?

JavaScript Professional Hard

JavaScript Professional — Hard

What is the difference between the [[Prototype]] internal slot and the prototype property on a function?

Key points

  • [[Prototype]] is the internal link to an object's prototype
  • Function.prototype is assigned as [[Prototype]] for instances created by that constructor
  • Understanding this difference is essential for grasping JavaScript inheritance

Ready to go further?

Related questions