JS Coding Questions Logo
JS Coding Questions
#342πŸ’Ό Interview

Do all objects have prototypes

Advertisement

728x90

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.

Advertisement

Responsive Ad
🎯 Practice NowRelated Challenge

JavaScript Coding Exercise 85

Test your knowledge with this interactive coding challenge.

Start Coding

Advertisement

728x90
342of476