Prototype and Prototypal Inheritance in Javascript | Frontend Interview Question
- What is Prototype?
- What is Prototypal Inheritance?
- What is Prototype Chain?
- Why we call it _proto_ ?
- What is inhertance in Javascript?
If this video was helpful, give it a thumbs up and subscribe to my channel for more such videos. 🔔
Link to Subscribe: kzread.info...
If you want me to cover any specific topic, then comment down below. I would be happy to help you.
If you find my videos helpful,
then please support this channel by buying a coffee,
www.buymeacoffee.com/akshayma...
Cheers,
Akshay Saini
akshaysaini.in
Would love to Stay Connected with you ❤️
LinkedIn - / akshaymarch7
Instagram - / akshaymarch7
Twitter - / akshaymarch7
Facebook - / akshaymarch7
#Javascript #JavascriptInterviewQuestions #AkshaySaini
Пікірлер: 452
First i like your video then watch it. :P
@gunam7343
5 жыл бұрын
i too
@dominicamaljoef6693
4 жыл бұрын
same here :)
@AnkitTiwari-lu2tt
4 жыл бұрын
same here
@Ghummakad_bhaya
3 жыл бұрын
Bro, my eyes are not closing after watching this 😄.Please keep on posting these deep knowledge 🙏🏼
@abhisekpradhan9353
3 жыл бұрын
same with me :)
inheritance in JS => When an object trying to access variables and properties of another object prototype is an Object that get attach to function/method/object and this object has some hidden properties Whenever we create object/ function/ methods/ array/ variable , these all are attached with some hidden properties, which we call prototype __proto__ is reference to prototype ( or it points towards prototype ), if we want to access prototype, we do __proto__ prototype object has a prototype of its own, and so on until an object is reached with null as its prototype, this is called prototype chaining
@AkashhGuptaa
7 ай бұрын
Thanks for summarizing buddy
@porobertdev
6 ай бұрын
Just wanna point out that the __proto__ is an old method. There's a new method (somewhat inconvenient if you ask me): Object.getPrototypeOf(obj). Learned from TheOdinProject 🙂
@astroflexx82
2 ай бұрын
Don't use __proto__ to access an object prototype, use Object.getPrototypeOf() instead.
awesome explanation. First, I used to read on MDN then refer to any video/blogs/articles for a simpler and short explanation. Now firstly I'll watch your video then refer any other study material. Please never stop making such great videos.
Interviewer asked me same question I explained it beautifully and he was surprised on my explanation and I got selected in interview too Thanks to Akshay brother for giving super content
@error04354
3 ай бұрын
Hey can explain and advice what is the major and important interviewers are ask the question. What I do for interview
I was quite confused by this topic for a long time, you make it simple and great explanation. I would genuinely request you to create the JavaScript Series for all the possible topics.
@canyouvish
8 ай бұрын
and now we have Namaste Javascript ♥
Honestly, Your last mybind example made me understand even more better. That was good. Keep up the good work sir.
I found my javascript tutor. Thank you, god bless you.
Awesome video Akshay! Just a side note that strings,arrays all get coerced into its object equivalent called as wrapper object when we try to access the built in properties. This is the reason why we use the dot(.) Operator to access them.
the most beautiful and well organized videos that i have ever encountered to youtube. THanks myan! looking forward when the new videos are coming
Idk wtf I was doing 3 yrs ago but here I am. Learning js from gold contents. Thanks for Namaste JavaScript episodes🎉
Really Deep dive coching. First time clearing concepts...Rocking.
Extremely well explained. I watched from udemy paid course but couldn't understand. but this person explained me perfectly.
Very helpful. Easily understood otherwise a highly confusing topic. Keep up the good work.
first time i watched your video and understand what really is a prototype. Thanks for the wonderful explanation in the coding way.
If not the best content out there on prototypal inheritance, it surely bridged the knowledge gap between __proto__ and prototype. Thanks Akshay for the video. keep up the good work. Quick tip: __proto__ is on the object instance, prototype is on the constructor function.
Subscribed. Finally found someone who is teaching in a way I want to be taught or I teach someone. Thanks, dude!!
This channel's content gives me so much confidence. Thank you so much.
i feel lucky to found your channel. Love ❤️ and Support.
Thank you for explaining in a practical way. It is very helpful.
guru ho aap , real guru , love the way you teach
I was lost and here you are man! Lovely, marvelous, mind boggling, seriously man, you make javascript fun to learn.
Best explanation i've ever found out on prototype chaining..
Aap hi ho jo itna deep padhata h aur itne ache se padhata h... Aur sab kuch smj aata h... Practice karne mai b maza aata hai really thankful to you... I love u sir...please make more videos in namaste javascript
good videos bro. I have watched tons of Videos on YT on the topics you presented, but sometimes things do not click on the first time, etc, so I keep coming back to the concepts that cause me issues. I love simplicity of your channel, you really helped me clear some things up! cheers!
I read it many times from MDN but never understood it completely, now it is done😍
@arghyaghosh2515
2 жыл бұрын
Same bro🤣🤣🤣
@BittuKumar_Web
2 жыл бұрын
what has to do in place of, object.__proto__= object2. he suggested not to do like this. what has to do in place of this.
@aashishomre1624
Жыл бұрын
use Object.create(object2)
I've watched many JS tutorial on KZread but your explanation is totally different You are JavaScript King 👑
WONDERFULLY EXPLAINED ! IT IS RIGHTLY SAID THAT IF YOU CAN NOT EXPLAIN IT SIMPLY ENOUGH THEN YOU DO NOT UNDERSTAND IT... THANK YOU VERY MUCH !
Much better explanations than all the videos I have watched till now on this topic, liked the video as soon as I got what you were explaining. Now subscribing to your channel for the depth of knowledge you are trying to provide thanks a lot it helped a lot.
Your videos are enough to crack most of the JavaScript inteviews
finally an explanation that does not use animal/user constructor functions for examples. using arrays/objects for examples finally helped this topic click better for me
Possibly the best explanation so far. Simple and easy to understand, great job man!!
@akshaymarch7
4 жыл бұрын
Big fan of your drawings and comics. 😍
you know what's more beautiful than functions in javascript, it's your teaching style ❤
Such a graceful explanation.
Wow, your break things down so very well. Thank you for this!!
Thanks for making this extremely helpful video!! Even though this somewhat a confusing topic for me, I do have a much better understanding of prototypal inheritance after watching this video :)
The most important thing I like in your videos …. You always have that confidence on :-)
By far, the best explanation of prototype and __proto__. Thanks.
Bravo. Great, simple, and clear explanation. Thank you.
awesome video... cleared all my doubts without having to watch 100s of videos
Hey Akshay, wonderful lesson. Thanks a lot for making it so simple.Your videos make JS easy and hence more interesting,as they say ''once you understand you get interested" .I would appreciate if you could come up with a video on DOM Manipulation without using Jquery. I know there are many resources available for this on the web but a video from your end will definitely clear the things in a much much better way.Hope to get a solid foundation video on DOM maipulation with Vanilla Javascript. Thanks in advance. :)
@akshaymarch7
5 жыл бұрын
Thanks for your suggestion, Vinit. That was not in my list, but even I think that would be helpful for a lot of people. Will surely try to cover that in upcoming videos. :)
Can't believe I finally understand this dunderproto thing 💯🔥.. I actually liked your video in between & then continued watching.
@akshaymarch7
3 жыл бұрын
Do watch Namaste Javascript web series on the channel, you'll love it brother. ❤️
Thank you Akshay for all the wonderful and easy explaination. I always watch your videos before the interviews. ♥️
2,3 jagah videos dekhi samajh nahi aaya bilkul bhi...yha akdam mast samajah aaya. Thank you bro❤
Simple and clean. Thanks bro
u explained very well, thanks a lot!
Such complex concepts taught so beautifully with so much passion. Iam blessed to be your student watching and learning from your videos. No words to thank enough🙏🏼.
Your videos are actually making me understand javascript deeply!
Thanks a lot Akshay, clear video of what I expected
Thank you Akshay! Your videos are helping me to understand things that I could not understand!
Yesterday I wasted my 3-4 hours on this topic with some videos on KZread. However, I did not fully understand the subject, there was always a missing piece. I could implement but this was just usage without understanding fully. Now, in 20 minutes, the subject has become completely clear in my head without any doubt. There is a serious amount of information pollution on the Internet. You really did a great job Akshay. I will be watching all your javascript-related videos for the next 2-3 days. Thank you so much for good and precise information.
Your explanation is just awsm.....Thankyou...
Thank you Bhaiya for explaining those terms beautifully, I'm glad that you made the video on it.
You are the best javascript tutor, i am watching all your videos. Great comtent, very helpful 😁
Great Work Akshay, thanks for posting this
YOU ARE A AMAZING TEACHER...PLS MAKE MORE VIDEOS
Your videos is really helpful. Thanks for this video.
Thanks for clearning my confusion.
Usual prototype expiation begin with car colour seat etc 🤦🏻♂️ and I forget every time ... Most simplest way to explain prototype and js inheritance. Love the way you detail things ..
THE BEST EXPLANATION....
Concepts clear within just 20 minutes, in which i was struggling for days. Thanks vaiya. Love from Bangladesh.
Akshay your explanation is 1 number, I watched your video of poly fill for bind but don't understand the Function.prototype but now I got it. Thanks akshay bhai.
great videos with proper information. You r doing great work!! . Thanks for sharing ur knowledge nicely and clean .
very good tutorial very useful. thank you Akshay.
great concise nd clear explanation.Thankyou so much👍😀
very clear explanation i watched many videos but this video is very understandable.
Very helpful thanks for sharing your knowledge.
I am new on your channel and js too, but you are not disappointed me, thank you
Great...Thank you...got my concept clear
i learned many great things from you .thanks
You made this very easy to understand. Thank you!!!
Finally i got what is Prototype and Prototypal Inheritance, thanks bro
This was amazing I learnt alot from this video
Thank you for sharing this video. I learned a lot from it.
Your videos are amazing. I love them. Please make more.
Great hands on tutorial.
Great watch and great explanation of inheritance in js
Alhamdulillah. Family I got it, thanks a lot.
Mast, sab clear ho gaya. Thanks bro.
I was looking this kind of explanation and i found.
Came to this after being asked what is prototypical inheritance in JS during an interview and not REALLY knowing. Thanks!
The best explanation on js prototype 👌🏻👌🏻
very clear explanation thank you
Thank You so much, I surfed many other videos on same topic. But this one is the best, clears the whole concept. Subscribed the channel. Thank You.
Thanks , that was great video
This video is such helpful to this topic, thank you!!!
this video is a life savior!
best explanation ...thank you very much
Keep posting amazing videos like this.
Liked and subscribed! Now, you are on my list for more references. Thanks, man.
Thank you so much ..It was really helpful..
thumbs up to the free tutorials in the world of wolf gupta
thanks alot sir.... i've learned alot from these kind of videos
Finally a video that cleared my confusion 🙂🙂
Thanks a lot man, for such great lesson.
You are really good in JavaScript.. thanks for this video
very helpful and very nicely explained Thanks
Thank you so much for this video
Liked the video ....... Got a clear understanding of the topic thanks❤❤
simple and to the point, thank you :)
That's a great explanation Akshay