Prototype vs __proto__ Javascript interview question

Published: 05 October 2023
on channel: code savera
705
12

Prototype is only accessible on constructors, while dunder proto is only accessible on instances.

"The function 'Person' on the screen is a constructor function that has a 'fullName' method defined on its prototype."

"When creating an instance, 'person1,' the prototype of the 'Person' constructor becomes linked to the dunder proto of the 'person1' instance."
//run the code

"And because of this linkage, we can now access the 'fullName' method of the constructor's prototype from the 'person1' instance."


On this page of the site you can watch the video online Prototype vs __proto__ Javascript interview question with a duration of hours minute second in good quality, which was uploaded by the user code savera 05 October 2023, share the link with friends and acquaintances, this video has already been watched 705 times on youtube and it was liked by 12 viewers. Enjoy your viewing!