Skip to content Skip to sidebar Skip to footer

What Is The __proto__ Value Of An Object That Is Being Created By Constructor

I know that it seems that there is a lot of reference in the net or books for my question, but believe me that if i'm asking it's mean that after reading books/seeing videos i'm ve

Solution 1:

__proto__ points to Person.prototype in this case

Edit: Ahhh, I finally see what you're asking, you were thinking in another Programing language where there's "type". You see in JS, function is an Object. There's no class. Every Object you created will be type "Object".

Post a Comment for "What Is The __proto__ Value Of An Object That Is Being Created By Constructor"