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): https://youtu.be/EfAl9bwzVZk
Javascript ES6 Classes Tutorial: https://youtu.be/5fmifZZeJJ4
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/docs/Learn/JavaScript/Objects/Object_prototypes
More from MDN Web Docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain
Follow Me:
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/
Blog: https://yesdavidgray.com
Reddit: https://www.reddit.com/user/DaveOnEleven
Was this tutorial about Javascript Prototypes helpful? If so, please share. Let me know your thoughts in the comments.
#javascript #prototypes #tutorial