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 fromObject.prototype.
All other standard objects do have a prototype.