FrontendDeveloper.in

JavaScript question detail

Do all objects have prototypes

No. All objects have prototypes except two exceptions:

  • Object.prototype itself — This is the base object in the prototype chain, and its prototype is null.
  • Objects created with **Object.create(null)** — These are deliberately created with no prototype, so they don’t inherit from Object.prototype.

All other standard objects do have a prototype.

Back to all JavaScript questions
Get LinkedIn Premium at Rs 399