What is the prototype of a plain object literal like
{} by default?- aFunction.prototype
- bObject.prototype✓
- cArray.prototype
- dnull, since object literals start with no prototype
Explanation:Every object literal is implicitly created via
new Object(), so its internal [[Prototype]] points to Object.prototype, which is where methods like toString and hasOwnProperty come from. Only Object.create(null) produces an object with no prototype (d).