Understanding the JavaScript Prototype Chain

preview_player
Показать описание
This tutorial explains the concept of Prototypes in JavaScript, how a prototype chain gets built, how javascript uses the prototype chain to search for methods, and how you can customized the prototype chain to build your own custom objects.

Рекомендации по теме
Комментарии
Автор

I must say that you have the most genuine, easy to understand, well explained/high-quality tutorials on concepts that've been foreign to me forever! Now, who remembers Prototype.js from the good ol' days ;)

pupdoggify
Автор

The part where we both just sat looking at the console thinking WHY IT WORKS 😂😂😂 hilarious. Honestly thanks for the videos! Lots of respect from Uzbekistan 🇺🇿

islombekhasanov
Автор

Eventhough this prototype concept is bit difficult to understand, watching it again and again, slowly understanding the purpose of prototype, Thank you Sir, you are a legend at Java Script

aravindm
Автор

I don’t understand why you are so underrated!!! This guy is so precise and clear.

foysalmohammad
Автор

You've made that hard to get around topic so easy to me. Thank you Professor

saifullahmansur
Автор

I owe you a lot that the fact I can write some javascript from scratch now is all because you have assisted me along the way, Thank you. Now the subscribers are 28K, when it reaches 30k, then you can do the patron program, I will be the first to participate.

rotrose
Автор

as always you simplify every topic in js. and make it look easy!
keep it up, you're really a great teacher.

osamagamal
Автор

The best explanation as always. Thanks sir

alexsilva
Автор

Amazing, prof! Thanks so much for this. Have you ever considered creating a patron program for this channel where subscribers could say contribute $5 a month to you as a token of appreciation for these great classes? I gladly would consider this without a second thought, you, Prof, alone, rectified my javascript singlehandedly!


I am open to suggestions from you and other subscribers!
Please keep doing this, blessings!

maxtayebwa
Автор

I have not seen a better explanation for this topic. Quality Content💯. Thanks Steve, this really helped me.

hey.............
Автор

That was a very clean explanation of prototype and __proto__. Could you please add a video on classical inheritance vs prototypal inheritance. Its a big confusion!

swaroopbhave
Автор

This is by far the best vid on js proto's. Thank you!

kaiansaari
Автор

Brilliant thank you very much for this another great tutorial

richochet
Автор

In 1:52, you said "this object obj has its prototype as otherProto" but when i run the code : it just returns {} in VS Code...why?

JosephPachuau
Автор

2:30 Are there any ways to inspect in the dev console that all the prototypes chain is heading to null? That part is the only part that I can't understand.

juanyang
Автор

Is there any difference in the prototype chain for map objects, set objects and arrays? Also, when you create an object with a class, is the prototype chain of that object similar to how it is when you create an object with a constructor?

Snoo
Автор

I love how you just sit there in silent disbelief for a few seconds at 5:40 when obj.__proto__.someMethod() works

walltack
Автор

Hmm🤔, is it possible to point Object.prototype to some custom object? Will it extend every instance of Object?

maksymantoshkin
Автор

Hi Steve, I am a little new to this. Is prototypes only a ES5 thing? Is it relevant to ES6?

MatterAAA
Автор

Got a question, something that I'm trying to understand, so you write instead of otherProto.someMethod, because if you wrote the latter, the method would not become available to obj? So modifying otherProto does not automatically modify its prototype?

michael.knight
join shbcf.ru