Prototypes and Prototypal Inheritance - Javascript In Depth

Описание к видео Prototypes and Prototypal Inheritance - Javascript In Depth

We take a look at Prototypes as well as Prototypal Inheritance together in Javascript. This is a concept that underpins everything we do in Javascript and answers questions about the properties on the Objects and types we've been using in Javascript up until now.

Understanding prototypes will also set us up really nicely in our conceptual understanding of how Classes and Object Oriented Programming work in Javascript. These new keywords and additions to the language will leverage the built-in Prototypes that Javascript has to simulate the ideas of "classes" in the language for us.

Note that this is an advanced topic and will take a lot of practice and trying different things over time to really cement. We'll go through some practice exercises together on prototypes in the next video in the series.

This is part of a series where we go over Javascript in depth to learn programming concepts as well as web development:    • Javascript In Depth  

Chapters:
00:00 Introduction
01:43 Prototypes and Prototypal Inheritance
02:42 Mysterious Properties
04:27 Properties Recap Code Example
10:03 The Object [[ Prototype ]]
13:10 [[ Prototype ]] Getters
14:38 First Prototype Code Example
19:49 The Prototype Chain
23:38 Prototype Chain Code Example
27:28 Static Object Properties
29:45 Static Properties Code Example
32:42 Static vs Prototype Properties
38:27 Setting a Different Prototype
40:42 Prototype Setting Code Example
45:55 The "new" keyword with Prototypes
48:25 Next Steps

📦 Github Repository with the notes and exercise code+solutions: https://github.com/Nooder/javascript-...
💬 Come join us on Discord to chat with a like-minded community about tech and learning:   / discord  
🏅Support the channel and content through Super Thanks, Channel Memberships, or on Patreon:   / techwithnader  

Комментарии

Информация по комментариям в разработке