I am new to prototypes. I have defined an object literal like this
const obj = {
name: 'Prashant',
sayHI(){
console.log("Hi, I am Prashant");
}
}
console.log(obj);
After console logging the object I am getting a property ([[Prototype]]: Object) whose __proto __ property is also referencing to object.prototype.
If obj is an object why it's prototype is also pointing to object.prototype instead of pointing to null and why they both have the same functions?