A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-181.js
1consto=Object.create(null);
2console.log(oinstanceofObject);
3console.log(typeofo.hasOwnProperty);
Scope
Answer & explanation
Console output
false
undefined
Why
Object.create(null) makes an object whose prototype is null, so Object.prototype never appears in its chain. As a result o instanceof Object is false, and inherited helpers like hasOwnProperty are undefined rather than functions. Such "bare" objects are useful as clean dictionaries free of inherited keys.