Hey everyone! Just wanted to add a correction to the last section - The "new" keyword with Prototypes: The Animal prototype does not have "type" in it. "Type" is just in the individual instances of Animal. In order to add it to the prototype of Animal, we'd need to do: Animal.prototype.type = _something_; Just like we saw with the Object.prototype before it. I also forgot to remove "speak" from the Object prototype from the earlier slide, haha sorry! This again would only be here if we assigned to Object.prototype.speak and then had this code as well. Hope that helps and doesn't confuse things more! 😊
But I got stuck....What does Object.getOwnPropertyNames(Object.__proto__) refers to? Object. getOwnPropertyNames (Object.__proto__._proto__) refers to prototype which contains construtor, definegetsetter.... And one more thing MDN says usage of __proto__ should be discouraged...so how to use Obejct.getPrototypeOf?? Pls help... I shall be highly thankful
Hey Fln! Thank you so much for the kind words! It really means a lot and it’s comments like this that help me keep going 😊 If you’re interested, here’s a link to the Discord server we have where we’re also building a community on all this: discord.gg/9SZbqWvMrV
you have the gift of being able to teach really well , thank u so much , i am currently watching your js in depth playlist and it's amazing , keep going
Thanks Kim! I hope to keep creating more like this and sharing with the community 😊 Would love to know what makes you say that though vs the other content on youtube!
Hey everyone! Just wanted to add a correction to the last section - The "new" keyword with Prototypes:
The Animal prototype does not have "type" in it. "Type" is just in the individual instances of Animal. In order to add it to the prototype of Animal, we'd need to do: Animal.prototype.type = _something_; Just like we saw with the Object.prototype before it.
I also forgot to remove "speak" from the Object prototype from the earlier slide, haha sorry! This again would only be here if we assigned to Object.prototype.speak and then had this code as well.
Hope that helps and doesn't confuse things more! 😊
Discovering this channel is like discovering gold
Better than 99.9% of prototypal tutorials.
WoW... The only one on YT to actually clear all the fake prototypes.... Really cleared the Objects concepts
Thanks for the kind words! I'm glad this concept makes sense for you, since this is definitely an important but challenging topic! 🤓
But I got stuck....What does Object.getOwnPropertyNames(Object.__proto__) refers to?
Object. getOwnPropertyNames (Object.__proto__._proto__) refers to prototype which contains construtor, definegetsetter....
And one more thing MDN says usage of __proto__ should be discouraged...so how to use Obejct.getPrototypeOf??
Pls help... I shall be highly thankful
One of the best JS channels on YT! I've been following u for a while now and I've learned so much! Thank you for the awesome in depth content.
Hey Fln! Thank you so much for the kind words! It really means a lot and it’s comments like this that help me keep going 😊
If you’re interested, here’s a link to the Discord server we have where we’re also building a community on all this: discord.gg/9SZbqWvMrV
you have the gift of being able to teach really well , thank u so much , i am currently watching your js in depth playlist and it's amazing , keep going
your content is so underrated
Thanks Kim! I hope to keep creating more like this and sharing with the community 😊 Would love to know what makes you say that though vs the other content on youtube!
I am very happy that I am able to understand protoypes just because you explain in very nice manner. ❤❤
god i love this series. you're such an amazing teacher, this is so exciting
This guy has some quality content and great explanations
Thanks Shivansh! I’ll keep them coming 😊
wow you just blew my mind with your amazing explanation nader , thank you soo much for providing such a quality content , keep going : )
best explaination on the youtube👍👍
Great explanation of JavaScript prototypes. I truly appreciate your hard work for this video.
you deserve 100 M subs
super interesting video, finally a nice explanation of the topic
Keep teaching Nader! Awesome content and easy to understand!
Very good explanation
This course worth for 5-6 thousand if you want to sell on udemy and cousera. but bro taught us for free hats off from india
This is amazing and very clear. Keep up the good work.
Thanks Samuel! Glad you found it helpful - this is a tricky topic 😊
Well done on the explanation.
Great video as usual
Thanks Mahmoud! 😊
26:58
The tutorial is fantastic