I created a new Object like
var result = new Object();
Is this supposed to inherit from "Object" and Object. prototype?.
var result = {}
This is another way of instantiating an object.
When I checked something like Object.isPrototypeOf(result);
false is returned. But when did Object.getPrototypeOf(result);
I get proto of the result.
And, result.__proto__ returns result's prototype functions but result.__proto__.__proto__ is null.
So what can I conclude from this? Is the result object inherited from the Object or not?
If not, then how to make an object access properties from the object prototype?
If yes, why are the expected results returned either null, undefined, or false?