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."
На этой странице сайта вы можете посмотреть видео онлайн Prototype vs __proto__ Javascript interview question длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь code savera 05 Октябрь 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 705 раз и оно понравилось 12 зрителям. Приятного просмотра!