Prototype and Prototypal Inheritance in Javascript | Frontend Interview Question
ฝัง
- เผยแพร่เมื่อ 29 มี.ค. 2019
- - 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: th-cam.com/users/akshaymarch...
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
First i like your video then watch it. :P
i too
same here :)
same here
Bro, my eyes are not closing after watching this 😄.Please keep on posting these deep knowledge 🙏🏼
same with me :)
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.
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
Thanks for summarizing buddy
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 🙂
Don't use __proto__ to access an object prototype, use Object.getPrototypeOf() instead.
is prototype an Object or a property ?
Honestly, Your last mybind example made me understand even more better. That was good. Keep up the good work sir.
the most beautiful and well organized videos that i have ever encountered to youtube. THanks myan! looking forward when the new videos are coming
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
Hey can explain and advice what is the major and important interviewers are ask the question. What I do for interview
which company and for what role
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.
Idk wtf I was doing 3 yrs ago but here I am. Learning js from gold contents. Thanks for Namaste JavaScript episodes🎉
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.
and now we have Namaste Javascript ♥
Subscribed. Finally found someone who is teaching in a way I want to be taught or I teach someone. Thanks, dude!!
Extremely well explained. I watched from udemy paid course but couldn't understand. but this person explained me perfectly.
I found my javascript tutor. Thank you, god bless you.
Really Deep dive coching. First time clearing concepts...Rocking.
first time i watched your video and understand what really is a prototype. Thanks for the wonderful explanation in the coding way.
Very helpful. Easily understood otherwise a
highly confusing topic. Keep up the good work.
i feel lucky to found your channel. Love ❤️ and Support.
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.
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
I was lost and here you are man! Lovely, marvelous, mind boggling, seriously man, you make javascript fun to learn.
I've watched many JS tutorial on TH-cam but your explanation is totally different
You are JavaScript King 👑
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!
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.
This channel's content gives me so much confidence.
Thank you so much.
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 :)
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
Thank you for explaining in a practical way. It is very helpful.
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 !
Best explanation i've ever found out on prototype chaining..
I read it many times from MDN but never understood it completely, now it is done😍
Same bro🤣🤣🤣
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.
use Object.create(object2)
Great Work Akshay, thanks for posting this
The most important thing I like in your videos …. You always have that confidence on :-)
Thank you Akshay for all the wonderful and easy explaination. I always watch your videos before the interviews. ♥️
you know what's more beautiful than functions in javascript, it's your teaching style ❤
2,3 jagah videos dekhi samajh nahi aaya bilkul bhi...yha akdam mast samajah aaya. Thank you bro❤
Your videos are enough to crack most of the JavaScript inteviews
guru ho aap , real guru , love the way you teach
Wow, your break things down so very well. Thank you for this!!
Possibly the best explanation so far. Simple and easy to understand, great job man!!
Big fan of your drawings and comics. 😍
Such a graceful explanation.
Liked and subscribed! Now, you are on my list for more references. Thanks, man.
great videos with proper information. You r doing great work!! . Thanks for sharing ur knowledge nicely and clean .
Thanks a lot Akshay, clear video of what I expected
By far, the best explanation of prototype and __proto__. Thanks.
Can't believe I finally understand this dunderproto thing 💯🔥.. I actually liked your video in between & then continued watching.
Do watch Namaste Javascript web series on the channel, you'll love it brother. ❤️
Thank you Bhaiya for explaining those terms beautifully, I'm glad that you made the video on it.
I am a Namste React subscriber and have completed the complete JS tutorials and I did not find this video over there , in the interview, protypal inheritancewas asked and I could not answer is correctly, so please add this video in the Namste JS section please, so that other will not face this issue.
Mast, sab clear ho gaya. Thanks bro.
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.
WOW ! :-D it's indeed an awesome explanation, got this concept cleared, thanks a lot bro :-)
awesome video... cleared all my doubts without having to watch 100s of videos
Thank you Akshay! Your videos are helping me to understand things that I could not understand!
I am new on your channel and js too, but you are not disappointed me, thank you
You are the best javascript tutor, i am watching all your videos.
Great comtent, very helpful 😁
YOU ARE A AMAZING TEACHER...PLS MAKE MORE VIDEOS
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 ..
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. :)
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. :)
Bhaisaab , I was so confused in this topic ... Akshay bhai ...Dil se shukriya ..❤
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.
Akshay bhai aapka samjhane ka tarika bohot gazab hain, thanks... : )
THE BEST EXPLANATION....
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🙏🏼.
Bravo. Great, simple, and clear explanation. Thank you.
Your videos are amazing. I love them. Please make more.
very good tutorial very useful. thank you Akshay.
Came to this after being asked what is prototypical inheritance in JS during an interview and not REALLY knowing. Thanks!
Your videos are actually making me understand javascript deeply!
Great...Thank you...got my concept clear
Your videos is really helpful. Thanks for this video.
Finally i got what is Prototype and Prototypal Inheritance, thanks bro
Keep posting amazing videos like this.
Your explanation is just awsm.....Thankyou...
Concepts clear within just 20 minutes, in which i was struggling for days. Thanks vaiya. Love from Bangladesh.
Wanted to know what is prototype in JS... searched on youtube and here comes this first video in search, and no need to open other tabs from results... Guaranteed that everything will be covered here. Thank you 🙏🏼 for such great videos.
❤️
Very helpful dude 🎉 Thanks for sharing your knowledge 👍🏻
hatss off to u bro, u make hard concpet so easy to understand, u also made ur map reduce and filter video so much simple and elegant, keep posting more such😇😇😇
I was looking this kind of explanation and i found.
Thank you for sharing this video. I learned a lot from it.
That's a great explanation Akshay
Great watch and great explanation of inheritance in js
great concise nd clear explanation.Thankyou so much👍😀
Yesterday I wasted my 3-4 hours on this topic with some videos on TH-cam. 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.
i learned many great things from you .thanks
u explained very well, thanks a lot!
very clear explanation i watched many videos but this video is very understandable.
thumbs up to the free tutorials in the world of wolf gupta
You made this very easy to understand. Thank you!!!
Finally a video that cleared my confusion 🙂🙂
Simply loved it ❤️
Thank you so much ..It was really helpful..
Very nice explanation Akshay Sir...
You are really good in JavaScript.. thanks for this video
i like ur video and ur javascript knowledge is great ...please make more video on javascript.....there are less video on javascript....my concept on prototype inheritance is clear by watching your video
Wonderful last 13 years working in JavaScript still was confused
The best explanation on js prototype 👌🏻👌🏻
Thanks a lot man, for such great lesson.
Hi, Your videos and explanation are awesome. If you could mention timestamp to the topics in video's description it would be great. Keep Spreading the Knowledge
Thank you for putting me in the example.... :)
Liked the video .......
Got a clear understanding of the topic
thanks❤❤
Nicely done! Thank you!
Namaste JS has brought me here! :) Very informative video.. :)