What is __proto__ ? | Javascript Prototypes Tutorial

Опубликовано: 24 October 2024
на канале: Dave Gray
44,580
1.5k

Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

What is _proto_ ? This Javascript prototypes tutorial will help you understand Javascript prototype inheritance and the prototype chain. Javascript prototypes are a popular interview question topic and what is "under the hood" of the modern syntactic sugar behind ES6 Classes.

🚩 Subscribe ➜ https://bit.ly/3nGHmNn

🚀 JavaScript for Beginners: Full Course (8 hours):    • JavaScript Full Course for Beginners ...  

📺 Javascript ES6 Classes Tutorial:    • Javascript Classes Explained | Javasc...  

What is _proto_ ? | Javascript Prototypes Tutorial

(00:00) Intro
(0:16) Good Reasons to know about Javascript Prototypes
(1:03) Hello _proto_
(2:59) New Modern Methods vs _proto_
(4:34) More than one link in the prototype chain
(8:11) 3 Rules of Prototypal Inheritance
(9:05) Inheriting a Getter and a Setter
(11:50) Inheriting from the Javascript Object
(13:34) Looping through direct and inherited keys
(14:56) Object Constructor Functions and Prototypes
(19:05) Javascript ES6 Classes and Extending Classes

References:
🔗 MDN Web Docs: https://developer.mozilla.org/en-US/d...
🔗 More from MDN Web Docs: https://developer.mozilla.org/en-US/d...

✅ Follow Me:
Twitter:   / yesdavidgray  
LinkedIn:   / davidagray  
Blog: https://yesdavidgray.com
Reddit:   / daveoneleven  

Was this tutorial about Javascript Prototypes helpful? If so, please share. Let me know your thoughts in the comments.

#javascript #prototypes #tutorial