Why does,
console.log(Object.getPrototypeOf({}));
logs {}
to the terminal and
console.log(Object.getPrototypeOf({}) === Object.prototype);
logs true
to the terminal?
Shouldn't the output on the former be Object.prototype
?
Why does,
console.log(Object.getPrototypeOf({}));
logs {}
to the terminal and
console.log(Object.getPrototypeOf({}) === Object.prototype);
logs true
to the terminal?
Shouldn't the output on the former be Object.prototype
?