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

  • @zahebshamsi
    @zahebshamsi5 жыл бұрын

    First i like your video then watch it. :P

  • @gunam7343

    @gunam7343

    5 жыл бұрын

    i too

  • @dominicamaljoef6693

    @dominicamaljoef6693

    4 жыл бұрын

    same here :)

  • @AnkitTiwari-lu2tt

    @AnkitTiwari-lu2tt

    4 жыл бұрын

    same here

  • @Ghummakad_bhaya

    @Ghummakad_bhaya

    3 жыл бұрын

    Bro, my eyes are not closing after watching this 😄.Please keep on posting these deep knowledge 🙏🏼

  • @abhisekpradhan9353

    @abhisekpradhan9353

    3 жыл бұрын

    same with me :)

  • @anjalii1102
    @anjalii1102 Жыл бұрын

    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

    @AkashhGuptaa

    7 ай бұрын

    Thanks for summarizing buddy

  • @porobertdev

    @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

    @astroflexx82

    2 ай бұрын

    Don't use __proto__ to access an object prototype, use Object.getPrototypeOf() instead.

  • @techtube2404
    @techtube24042 жыл бұрын

    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.

  • @sohailmohammed4024
    @sohailmohammed40244 ай бұрын

    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

    @error04354

    3 ай бұрын

    Hey can explain and advice what is the major and important interviewers are ask the question. What I do for interview

  • @ashwanikumar183
    @ashwanikumar1834 жыл бұрын

    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

    @canyouvish

    8 ай бұрын

    and now we have Namaste Javascript ♥

  • @prateekgautam7398
    @prateekgautam73984 жыл бұрын

    Honestly, Your last mybind example made me understand even more better. That was good. Keep up the good work sir.

  • @NuhAleph
    @NuhAleph4 жыл бұрын

    I found my javascript tutor. Thank you, god bless you.

  • @disenchanted_dove
    @disenchanted_dove5 жыл бұрын

    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.

  • @mohanrawat5052
    @mohanrawat50523 жыл бұрын

    the most beautiful and well organized videos that i have ever encountered to youtube. THanks myan! looking forward when the new videos are coming

  • @countmein5164
    @countmein51642 жыл бұрын

    Idk wtf I was doing 3 yrs ago but here I am. Learning js from gold contents. Thanks for Namaste JavaScript episodes🎉

  • @bhaveshmaisuria544
    @bhaveshmaisuria5444 жыл бұрын

    Really Deep dive coching. First time clearing concepts...Rocking.

  • @dhruvthakkar4350
    @dhruvthakkar43502 жыл бұрын

    Extremely well explained. I watched from udemy paid course but couldn't understand. but this person explained me perfectly.

  • @abs542
    @abs5423 жыл бұрын

    Very helpful. Easily understood otherwise a highly confusing topic. Keep up the good work.

  • @raviaryan6723
    @raviaryan67233 жыл бұрын

    first time i watched your video and understand what really is a prototype. Thanks for the wonderful explanation in the coding way.

  • @abhijeetyadav1647
    @abhijeetyadav16475 жыл бұрын

    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.

  • @somewhere_in_bharat
    @somewhere_in_bharat2 жыл бұрын

    Subscribed. Finally found someone who is teaching in a way I want to be taught or I teach someone. Thanks, dude!!

  • @gururajchadaga
    @gururajchadaga2 жыл бұрын

    This channel's content gives me so much confidence. Thank you so much.

  • @rohitkudalkar92
    @rohitkudalkar924 жыл бұрын

    i feel lucky to found your channel. Love ❤️ and Support.

  • @ameyzulkanthiwar9148
    @ameyzulkanthiwar91485 жыл бұрын

    Thank you for explaining in a practical way. It is very helpful.

  • @dipteshmukherjee346
    @dipteshmukherjee3463 жыл бұрын

    guru ho aap , real guru , love the way you teach

  • @tauseefanwardo
    @tauseefanwardo2 жыл бұрын

    I was lost and here you are man! Lovely, marvelous, mind boggling, seriously man, you make javascript fun to learn.

  • @SachinPatel-iw5qi
    @SachinPatel-iw5qi3 жыл бұрын

    Best explanation i've ever found out on prototype chaining..

  • @adnanahad
    @adnanahad3 жыл бұрын

    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

  • @milosleng1175
    @milosleng11753 жыл бұрын

    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!

  • @vikas.gaurav
    @vikas.gaurav3 жыл бұрын

    I read it many times from MDN but never understood it completely, now it is done😍

  • @arghyaghosh2515

    @arghyaghosh2515

    2 жыл бұрын

    Same bro🤣🤣🤣

  • @BittuKumar_Web

    @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

    @aashishomre1624

    Жыл бұрын

    use Object.create(object2)

  • @rishikeshsanjekar1349
    @rishikeshsanjekar13492 жыл бұрын

    I've watched many JS tutorial on KZread but your explanation is totally different You are JavaScript King 👑

  • @aparnaiyer5873
    @aparnaiyer58732 жыл бұрын

    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 !

  • @amitsingh-rb6jl
    @amitsingh-rb6jl2 жыл бұрын

    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.

  • @commondev2595
    @commondev25952 жыл бұрын

    Your videos are enough to crack most of the JavaScript inteviews

  • @alpaytripleplay5150
    @alpaytripleplay51503 жыл бұрын

    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

  • @sindhu1345
    @sindhu13454 жыл бұрын

    Possibly the best explanation so far. Simple and easy to understand, great job man!!

  • @akshaymarch7

    @akshaymarch7

    4 жыл бұрын

    Big fan of your drawings and comics. 😍

  • @adityaagrawal4466
    @adityaagrawal4466 Жыл бұрын

    you know what's more beautiful than functions in javascript, it's your teaching style ❤

  • @SubhraKDas-zg6jf
    @SubhraKDas-zg6jf4 жыл бұрын

    Such a graceful explanation.

  • @mustang7ist
    @mustang7ist2 жыл бұрын

    Wow, your break things down so very well. Thank you for this!!

  • @AbhishekSharma-cq2hw
    @AbhishekSharma-cq2hw3 жыл бұрын

    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 :)

  • @vishwasrvishu9267
    @vishwasrvishu92673 жыл бұрын

    The most important thing I like in your videos …. You always have that confidence on :-)

  • @Aram64
    @Aram643 жыл бұрын

    By far, the best explanation of prototype and __proto__. Thanks.

  • @danielgolden90
    @danielgolden902 жыл бұрын

    Bravo. Great, simple, and clear explanation. Thank you.

  • @mdasadazam6161
    @mdasadazam61612 жыл бұрын

    awesome video... cleared all my doubts without having to watch 100s of videos

  • @vinitrai5020
    @vinitrai50205 жыл бұрын

    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

    @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. :)

  • @pranshu_g
    @pranshu_g3 жыл бұрын

    Can't believe I finally understand this dunderproto thing 💯🔥.. I actually liked your video in between & then continued watching.

  • @akshaymarch7

    @akshaymarch7

    3 жыл бұрын

    Do watch Namaste Javascript web series on the channel, you'll love it brother. ❤️

  • @ananyajain8528
    @ananyajain85282 жыл бұрын

    Thank you Akshay for all the wonderful and easy explaination. I always watch your videos before the interviews. ♥️

  • @jeet_aj77
    @jeet_aj77 Жыл бұрын

    2,3 jagah videos dekhi samajh nahi aaya bilkul bhi...yha akdam mast samajah aaya. Thank you bro❤

  • @rajeshnarra8089
    @rajeshnarra8089 Жыл бұрын

    Simple and clean. Thanks bro

  • @fatimaiqra2169
    @fatimaiqra2169Ай бұрын

    u explained very well, thanks a lot!

  • @anitasunildesai
    @anitasunildesai4 ай бұрын

    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🙏🏼.

  • @namankeshari7332
    @namankeshari733211 ай бұрын

    Your videos are actually making me understand javascript deeply!

  • @ranjanrnj6864
    @ranjanrnj68643 жыл бұрын

    Thanks a lot Akshay, clear video of what I expected

  • @zarinamurattalks
    @zarinamurattalks Жыл бұрын

    Thank you Akshay! Your videos are helping me to understand things that I could not understand!

  • @XYZ-bz8tf
    @XYZ-bz8tf2 жыл бұрын

    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.

  • @prernasingh9186
    @prernasingh91863 жыл бұрын

    Your explanation is just awsm.....Thankyou...

  • @YashCurious
    @YashCurious Жыл бұрын

    Thank you Bhaiya for explaining those terms beautifully, I'm glad that you made the video on it.

  • @swayambhagwan
    @swayambhagwan3 жыл бұрын

    You are the best javascript tutor, i am watching all your videos. Great comtent, very helpful 😁

  • @sumer9999
    @sumer99995 жыл бұрын

    Great Work Akshay, thanks for posting this

  • @piyu1919
    @piyu19194 жыл бұрын

    YOU ARE A AMAZING TEACHER...PLS MAKE MORE VIDEOS

  • @thespirtualhub
    @thespirtualhub3 жыл бұрын

    Your videos is really helpful. Thanks for this video.

  • @AICreativityTime
    @AICreativityTime Жыл бұрын

    Thanks for clearning my confusion.

  • @dipinkrishnan
    @dipinkrishnan3 жыл бұрын

    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 ..

  • @ashirbadbehera5544
    @ashirbadbehera55444 жыл бұрын

    THE BEST EXPLANATION....

  • @armankabir8737
    @armankabir87372 жыл бұрын

    Concepts clear within just 20 minutes, in which i was struggling for days. Thanks vaiya. Love from Bangladesh.

  • @gopalbharadva1390
    @gopalbharadva13902 жыл бұрын

    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.

  • @varisumrania
    @varisumrania2 жыл бұрын

    great videos with proper information. You r doing great work!! . Thanks for sharing ur knowledge nicely and clean .

  • @bw7891
    @bw78914 жыл бұрын

    very good tutorial very useful. thank you Akshay.

  • @sachikanahashimoto710
    @sachikanahashimoto710 Жыл бұрын

    great concise nd clear explanation.Thankyou so much👍😀

  • @Manish-ee8kx
    @Manish-ee8kx2 жыл бұрын

    very clear explanation i watched many videos but this video is very understandable.

  • @shubhamsonawane967
    @shubhamsonawane9672 жыл бұрын

    Very helpful thanks for sharing your knowledge.

  • @jayeshbagul3961
    @jayeshbagul39619 ай бұрын

    I am new on your channel and js too, but you are not disappointed me, thank you

  • @vijaykumar-wq9db
    @vijaykumar-wq9db3 жыл бұрын

    Great...Thank you...got my concept clear

  • @amrishpatidar2579
    @amrishpatidar25793 жыл бұрын

    i learned many great things from you .thanks

  • @hanmantjankar7544
    @hanmantjankar75442 жыл бұрын

    You made this very easy to understand. Thank you!!!

  • @SoorajJose1
    @SoorajJose12 жыл бұрын

    Finally i got what is Prototype and Prototypal Inheritance, thanks bro

  • @frankalimimian7479
    @frankalimimian7479 Жыл бұрын

    This was amazing I learnt alot from this video

  • @santhoshn31
    @santhoshn312 жыл бұрын

    Thank you for sharing this video. I learned a lot from it.

  • @kirtisahai8745
    @kirtisahai87453 жыл бұрын

    Your videos are amazing. I love them. Please make more.

  • @superlistCG
    @superlistCG11 ай бұрын

    Great hands on tutorial.

  • @dequan300
    @dequan30010 ай бұрын

    Great watch and great explanation of inheritance in js

  • @Hosain_Ahmed
    @Hosain_Ahmed Жыл бұрын

    Alhamdulillah. Family I got it, thanks a lot.

  • @amiturfnd
    @amiturfnd4 жыл бұрын

    Mast, sab clear ho gaya. Thanks bro.

  • @moviecentral4225
    @moviecentral42254 жыл бұрын

    I was looking this kind of explanation and i found.

  • @kodee2
    @kodee22 жыл бұрын

    Came to this after being asked what is prototypical inheritance in JS during an interview and not REALLY knowing. Thanks!

  • @kysivaram
    @kysivaram2 жыл бұрын

    The best explanation on js prototype 👌🏻👌🏻

  • @burakdiker2071
    @burakdiker2071 Жыл бұрын

    very clear explanation thank you

  • @ayikkathilkarthik4312
    @ayikkathilkarthik43123 жыл бұрын

    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.

  • @hemantvardani1436
    @hemantvardani1436Ай бұрын

    Thanks , that was great video

  • @nauilnil4074
    @nauilnil40748 ай бұрын

    This video is such helpful to this topic, thank you!!!

  • @hamzahbanday8956
    @hamzahbanday89562 жыл бұрын

    this video is a life savior!

  • @vishwanthkandibanda4711
    @vishwanthkandibanda47113 жыл бұрын

    best explanation ...thank you very much

  • @JS-zm5se
    @JS-zm5se3 жыл бұрын

    Keep posting amazing videos like this.

  • @abrahakahsay
    @abrahakahsay2 жыл бұрын

    Liked and subscribed! Now, you are on my list for more references. Thanks, man.

  • @fake_captain
    @fake_captain4 жыл бұрын

    Thank you so much ..It was really helpful..

  • @saurabhagrawal3934
    @saurabhagrawal39343 жыл бұрын

    thumbs up to the free tutorials in the world of wolf gupta

  • @abhishekrawat8579
    @abhishekrawat85792 жыл бұрын

    thanks alot sir.... i've learned alot from these kind of videos

  • @AdityaSingh-hx1tv
    @AdityaSingh-hx1tv3 жыл бұрын

    Finally a video that cleared my confusion 🙂🙂

  • @himanshuaggarwal8415
    @himanshuaggarwal84152 жыл бұрын

    Thanks a lot man, for such great lesson.

  • @chetanmohol8850
    @chetanmohol88502 жыл бұрын

    You are really good in JavaScript.. thanks for this video

  • @prashantindurkar
    @prashantindurkar2 жыл бұрын

    very helpful and very nicely explained Thanks

  • @akshaycrasta2620
    @akshaycrasta2620 Жыл бұрын

    Thank you so much for this video

  • @oqant0424
    @oqant04248 ай бұрын

    Liked the video ....... Got a clear understanding of the topic thanks❤❤

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars7 ай бұрын

    simple and to the point, thank you :)

  • @SrinubabuRavilla
    @SrinubabuRavilla Жыл бұрын

    That's a great explanation Akshay