Object.getPrototypeOfbeginner// Get the prototype of an object
const arr = []
Object.getPrototypeOf(arr) === Array.prototype // β true
Object.getPrototypeOf({}) === Object.prototype // β trueUse Object.getPrototypeOf() to retrieve the prototype of an object, allowing you to inspect its inheritance chain.
Arrays are instances of Array, so their prototype is Array.prototype, not Object.prototype directly.
Challenge: Implement arrayProtoIsArrayProto() that returns whether the prototype of [] is Array.prototype.
arrayProtoIsArrayProto() // β true