Visually Understanding JavaScript Prototypes

Visually Understanding JavaScript Prototypes

Steve Griffith - Prof3ssorSt3v3

4 года назад

53,230 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@auroraborealis5565
@auroraborealis5565 - 27.11.2023 06:16

Javascript is whack

Ответить
@rodinCodin
@rodinCodin - 20.11.2023 17:25

wonderful explanation, thank you!

Ответить
@mathieumorin2326
@mathieumorin2326 - 08.11.2023 03:10

Great video. Your voice pace and pitch is perfect for a good understanding!

Ответить
@SlipSlidinAway1
@SlipSlidinAway1 - 05.10.2023 17:48

Holy smokes, the ads the ads the ads. I’m concentrating on your (fantastic) lesson and just keep getting interrupted with ads that break my concentration. I’m ready to throw the device against the wall.

Ответить
@find_me8830
@find_me8830 - 01.10.2023 12:15

Wow, it's amazing how a visual representation of an abstract concept can make things much easier, thanks!

Ответить
@yubin_jo
@yubin_jo - 07.09.2023 06:10

thank you

Ответить
@adrienpusel4105
@adrienpusel4105 - 29.08.2023 18:38

Tanks ! It's really good :)

Ответить
@amrzaki850
@amrzaki850 - 22.08.2023 11:05

Awesome, thank you

Ответить
@TheOneTap_King
@TheOneTap_King - 03.08.2023 23:12

Finally someone who properly explained what exactly is prototypes in js....
Clear cut explanation/ Underrated Explanation...

Ответить
@anuragkushwaaha2091
@anuragkushwaaha2091 - 26.07.2023 07:59

One thing you might get confused with is accessing an object's prototype by using .prototype. for example let's say you have an object named Jason then you cannot access it's prototype like this : Jason.prototype
Instead you should use Jason._proto_ or Object.getPrototypeOf(Jason).
The point is that in order to access Jason's prototype there may be several ways but `Jason.prototype` is not one of them.

Ответить
@cooookie1993
@cooookie1993 - 10.07.2023 14:07

Hi, very good video, I do have one question however. If you didn't define a myObj variable would the Cat constructor still have to _proto_ of object prototype?

Ответить
@B-Billy
@B-Billy - 08.07.2023 16:26

That's couldn't be any further clearer, thank you for awesome teaching. You really nailed it🎉

Ответить
@user-uu2bb5yz7m
@user-uu2bb5yz7m - 08.07.2023 04:28

i am halfway through the video and i already understood and got what i was looking for. thanks a ton!
it would have been helpful if you would have explained why all functions have a prototype because i did not know that functions are objects

Ответить
@UCezRMC
@UCezRMC - 24.06.2023 16:47

thank you! finally I understood this chain of prototypes, couldn't figure it out for so long!

Ответить
@spoodermen2530
@spoodermen2530 - 14.06.2023 23:43

i like his voice :f
its like he's wooing me

Ответить
@mky5845
@mky5845 - 13.06.2023 09:14

you sooo gud !!!

Ответить
@magburner
@magburner - 20.05.2023 14:43

MyObj is connected to the prototype of the constructor function (new object), then the object prototype, and then null. You can see that when you look at _proto_ for myObj.

Ответить
@mattsmith6828
@mattsmith6828 - 14.05.2023 05:34

Does "Object.setPrototypeOf" work the same as "extends" for a class?

Ответить
@mattsmith6828
@mattsmith6828 - 11.05.2023 21:11

You are SO awesome for making this video. Admittedly, I had to watch this a 2nd time, but now it all makes sense!
Thank you!

Ответить
@Kazutadashi
@Kazutadashi - 08.05.2023 07:02

This video is truly incredible in how concise and clear it is. I watched several other videos before this one and always felt somewhat unsure of what was actually going on, or how things weren't being "overwritten" in the chain. After I watched this it became crystal clear on exactly what was going on. Thank you for making this awesome video!

Ответить
@ronitkumar19
@ronitkumar19 - 01.05.2023 00:26

just what I needed ...Thanks a lot sir :)

Ответить
@smarter2245
@smarter2245 - 23.04.2023 22:56

so awkward

Ответить
@zackfair8638
@zackfair8638 - 06.04.2023 17:05

My goodness how simply you explained that. I've had comprehension issues with prototypes since learning about them, and it was that simple...

Ответить
@hollowjohnny
@hollowjohnny - 03.04.2023 18:43

Does 'kitty._proto__.__proto_ === Object.prototype' mean its the same instance in memory? As in all object share a singleton base proto, or is it a different instance of the same thing??

Ответить
@andresroca9736
@andresroca9736 - 06.03.2023 16:56

Thanks man!. Really good explanation using that triangular visual approach. That's the best way to study software; diagrams outrange plain code to grasp knowledge. Gonna check your channel. Saludos

Ответить
@shaharyair4314
@shaharyair4314 - 02.03.2023 12:24

You are amazing. Thank you so much!

Ответить
@victoryjohn-great965
@victoryjohn-great965 - 28.02.2023 04:50

the bestttttt

Ответить
@karthikr7956
@karthikr7956 - 27.02.2023 14:54

very good. Thanks.

Ответить
@HelixJohnsons
@HelixJohnsons - 25.02.2023 20:04

Great video, it refreshed my mind about the topic.

Ответить
@halalmeatshop1553
@halalmeatshop1553 - 23.02.2023 21:33

these 2 things are confusing : dot._proto_ and dot.prototype ?
aren't they the same thing and serve the same purpose?
why call them differently ?

Ответить
@olivergrice4648
@olivergrice4648 - 22.02.2023 18:32

thankyou :)

Ответить
@hikmataliyev8441
@hikmataliyev8441 - 17.02.2023 13:06

thanks for the visual explanation, it helped a lot

Ответить
@bobbysilver272
@bobbysilver272 - 15.02.2023 18:01

You lost me in the first 37 seconds!

Ответить
@saifullahmansur6607
@saifullahmansur6607 - 25.01.2023 23:22

When we set Cat.prototype to Animal.prototype I am not getting Cat{}, Animal{}, {}, null. Instead I am getting :
Animal {constructor: ƒ}
{constructor: ƒ}
{constructor: ƒ, _defineGetter__: ƒ, __defineSetter__: ƒ, hasOwnProperty: ƒ, __lookupGetter_
null.

Help me figure this out

Ответить
@whyami6749
@whyami6749 - 20.01.2023 14:55

Very good explanation. Thank you sir <3

Ответить
@diegovidal8680
@diegovidal8680 - 09.01.2023 16:43

Thanks a lot!!! Really appreciate this!!

Ответить
@eumm11
@eumm11 - 03.01.2023 23:42

thank you professor, the visual example was extremely helpful

Ответить
@YoussefMohamed_99
@YoussefMohamed_99 - 30.11.2022 18:37

Professor..you're amazing
Extremely amazing <333
Adequate explanation + high quality
What do I need more than this !

Ответить
@bilelmoudache1478
@bilelmoudache1478 - 29.11.2022 17:12

merci vraiment je devenais fou carrement

Ответить
@CastorMilano
@CastorMilano - 18.11.2022 16:31

I mean, for real, me head just exploded, I thought I had understood this before, NOW I really understand it 😄

Ответить
@CastorMilano
@CastorMilano - 18.11.2022 16:14

Bro! You’re the man! Your explanations are the best 🤘😎🤘

Ответить
@focusiam2027
@focusiam2027 - 18.11.2022 04:06

Thank you Steve, you explain everything so clear! I appreciate it.

Ответить
@katkodes6055
@katkodes6055 - 09.10.2022 18:13

So good! The visual representation really helps newbies. Thank you

Ответить
@jvsvogler
@jvsvogler - 09.09.2022 07:27

I'm only halfway through the video and you already clarified what I wanted to know! Thank you so much for this, you are a brilliant teacher!! I feel like most written content I came across on this subject becomes very abstract and repetitive too quickly which makes this look like it is something so complex that I would never be able to understand... turns out that I already was familiar with how it works, so your video helped it "click".

Definitely deserved the sub and I really hope your channel keeps growing!! Ty

Ответить
@nemanjadjoric8765
@nemanjadjoric8765 - 01.09.2022 14:15

Thank you, thank you, thank you!!!:) You are awesome!!!

Ответить
@minigooshey
@minigooshey - 31.08.2022 02:40

Wow, what a beautiful explanation of prototypes. It was a bit convoluted when I learned about it recently, but this explains it very clearly. Great video, thank you.

Ответить
@Ludo045
@Ludo045 - 17.08.2022 18:08

man, this video is incredible.
The stuff was confusing for a long time. Now with these 2 diagrams of kitty object from a contructor and an object written litteral it just became so clear. i just refer either kitty and litteral object in my head when im in front of such case and i find my foot now
Damn.. 🤯

Ответить
@kinstar
@kinstar - 15.08.2022 22:38

From my understanding would this be correct
myObj._proto_ --> constructor.prototype constructor.prototype._proto_ --> Object.prototype Object.prototype__ proto__ ---> null

Ответить
@davitbokuchava6767
@davitbokuchava6767 - 04.08.2022 14:39

It was great explanation, Thanks!!!

Ответить