Understand JavaScript Prototypes

preview_player
Показать описание
by watching this video, you will understand the JavaScript Prototype.

🌍 Social Media Links.

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

🚨 Big Announcement! 🚨

Hey everyone! I've made a big decision for this channel—I've turned off ads on all my videos! That's right, you can now enjoy all my content ad-free! This means I'm earning $0 from ad revenue, but I believe this is the right move to make your viewing experience better.

If you find my content valuable and want to support my work, there are several ways you can help:

Like & Share: Simply liking the video and sharing it with friends helps a lot!
Subscribe & Hit the Bell: Stay updated and never miss a new video.
YouTube Thanks: Use the "Thanks" button below to send a one-time donation.
Join the Channel Community: Get exclusive perks and behind-the-scenes content.

Every little bit counts and goes directly to creating more high-quality content for you all. Thank you so much for your continued support!

Let’s keep growing and learning together! 🌟

CodeExplained
Автор

Great video, I'm surprised how js courses skip over all of this and just expect people to write code without understanding the underlying basics. I've been programming js for a few months and had no idea about any of this... I inferred most of it but this was magic. Thank you very much

julianfranco
Автор

now i am understand prototype fully..thanks

sumitmobiotics
Автор

thank you so much, i have been watched vidoes about objects prototypes, but things just are complicated until i found your videos, u r super sir, go on, i like your video and your way of clarifying thins, thank you sir so much

Learn_English_Deutsch
Автор

A very nice demonstration of inheritance and how objects find properties and methods in their prototype. A point of object prototyping it is worth remembering if you are new to JavaScript, ( as I am), is that objects inherit certain properties that are useful to the coder . JavaScript then extends this functionality to the coder. So the car comes with wheels because this makes the car functional. Prototype properties make all instances equally useful.

matthewb
Автор

One of the most important things to mention about prototypes is that they are shared objects. That is to say, every instance created using Person points back to the exact same, single, prototype object of Person. So if you create 1000 instances of Person. Every last one of them references only one single copy of the getName function in one single prototype.

The advantage of this is that you save on memory by not having each of every instance of Person having its own separate duplicate copy of the getName function property. Another advantage is that you can dynamically update an object type by editing its prototype and have the changes immediately available to all existing instances of the object since they all reference that single prototype.

Prototypes allow us to factor out common functionality of objects of a type, into a single repository, so that the instances can be more lightweight, carrying only separate instances of data which varies from one instance to another. Methods defined in the prototype can select the data of a particular instance VIA the use of the "this" keyword, which signals to javascript that it should search for the referenced property beginning in the object instance making the call.

caribbeanman
Автор

Thank you boss! With your clean examples i could able to understand everything clearly

gimhana_menaka
Автор

I love you so much thank you for helping me understand 😭

ChocolateTaiyaki
Автор

Nice one && What is the difference between var & let..??

anintrovert
Автор

Great video and presentation, thank you!

mitch
Автор

Liked this video. Keep it up.
What's the name of the IDE you are using with awesome auto completion? Is it free?

codecatt
Автор

What's the advantage of making a prototype function over just making it an object method ?

haroldcjennettiii
Автор

Thanks, I am not a native speaker, the car prototype machine let me understand the meaning of the prototype

HelloWorld-bblm
Автор

Can I say father.getName; Instead of father.getName();

owonubijobsunday
join shbcf.ru