Prototype and Prototypal Inheritance in Javascript | Frontend Interview Question

  Рет қаралды 353,851

Akshay Saini

Akshay Saini

5 жыл бұрын

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

Пікірлер: 448
@zahebshamsi
@zahebshamsi 5 жыл бұрын
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 6 ай бұрын
Thanks for summarizing buddy
@porobertdev
@porobertdev 5 ай бұрын
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 Ай бұрын
Don't use __proto__ to access an object prototype, use Object.getPrototypeOf() instead.
@techtube2404
@techtube2404 2 жыл бұрын
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.
@disenchanted_dove
@disenchanted_dove 5 жыл бұрын
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.
@prateekgautam7398
@prateekgautam7398 4 жыл бұрын
Honestly, Your last mybind example made me understand even more better. That was good. Keep up the good work sir.
@sohailmohammed4024
@sohailmohammed4024 3 ай бұрын
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 2 ай бұрын
Hey can explain and advice what is the major and important interviewers are ask the question. What I do for interview
@countmein5164
@countmein5164 Жыл бұрын
Idk wtf I was doing 3 yrs ago but here I am. Learning js from gold contents. Thanks for Namaste JavaScript episodes🎉
@abhijeetyadav1647
@abhijeetyadav1647 5 жыл бұрын
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.
@adnanahad
@adnanahad 3 жыл бұрын
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
@ashwanikumar183
@ashwanikumar183 3 жыл бұрын
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 7 ай бұрын
and now we have Namaste Javascript ♥
@dhruvthakkar4350
@dhruvthakkar4350 2 жыл бұрын
Extremely well explained. I watched from udemy paid course but couldn't understand. but this person explained me perfectly.
@rishikeshsanjekar1349
@rishikeshsanjekar1349 2 жыл бұрын
I've watched many JS tutorial on KZbin but your explanation is totally different You are JavaScript King 👑
@abs542
@abs542 3 жыл бұрын
Very helpful. Easily understood otherwise a highly confusing topic. Keep up the good work.
@mohanrawat5052
@mohanrawat5052 3 жыл бұрын
the most beautiful and well organized videos that i have ever encountered to youtube. THanks myan! looking forward when the new videos are coming
@somewhere_in_bharat
@somewhere_in_bharat 2 жыл бұрын
Subscribed. Finally found someone who is teaching in a way I want to be taught or I teach someone. Thanks, dude!!
@NuhAleph
@NuhAleph 4 жыл бұрын
I found my javascript tutor. Thank you, god bless you.
@raviaryan6723
@raviaryan6723 3 жыл бұрын
first time i watched your video and understand what really is a prototype. Thanks for the wonderful explanation in the coding way.
@tauseefanwardo
@tauseefanwardo 2 жыл бұрын
I was lost and here you are man! Lovely, marvelous, mind boggling, seriously man, you make javascript fun to learn.
@AbhishekSharma-cq2hw
@AbhishekSharma-cq2hw 3 жыл бұрын
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 :)
@milosleng1175
@milosleng1175 3 жыл бұрын
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!
@rohitkudalkar92
@rohitkudalkar92 4 жыл бұрын
i feel lucky to found your channel. Love ❤️ and Support.
@aparnaiyer5873
@aparnaiyer5873 2 жыл бұрын
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 !
@bhaveshmaisuria544
@bhaveshmaisuria544 3 жыл бұрын
Really Deep dive coching. First time clearing concepts...Rocking.
@amitsingh-rb6jl
@amitsingh-rb6jl 2 жыл бұрын
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.
@vikas.gaurav
@vikas.gaurav 3 жыл бұрын
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)
@alpaytripleplay5150
@alpaytripleplay5150 3 жыл бұрын
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
@rajapavithraselvaraj5937
@rajapavithraselvaraj5937 3 жыл бұрын
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
@jeet_aj77
@jeet_aj77 Жыл бұрын
2,3 jagah videos dekhi samajh nahi aaya bilkul bhi...yha akdam mast samajah aaya. Thank you bro❤
@dipinkrishnan
@dipinkrishnan 3 жыл бұрын
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 ..
@XYZ-bz8tf
@XYZ-bz8tf 2 жыл бұрын
Yesterday I wasted my 3-4 hours on this topic with some videos on KZbin. 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.
@gururajchadaga
@gururajchadaga 2 жыл бұрын
This channel's content gives me so much confidence. Thank you so much.
@adityaagrawal4466
@adityaagrawal4466 11 ай бұрын
you know what's more beautiful than functions in javascript, it's your teaching style ❤
@ameyzulkanthiwar9148
@ameyzulkanthiwar9148 4 жыл бұрын
Thank you for explaining in a practical way. It is very helpful.
@vishwasrvishu9267
@vishwasrvishu9267 3 жыл бұрын
The most important thing I like in your videos …. You always have that confidence on :-)
@vinitrai5020
@vinitrai5020 5 жыл бұрын
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_g 3 жыл бұрын
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. ❤️
@ssvideos-web
@ssvideos-web 3 жыл бұрын
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.
@akshaymarch7
@akshaymarch7 3 жыл бұрын
❤️
@sindhu1345
@sindhu1345 4 жыл бұрын
Possibly the best explanation so far. Simple and easy to understand, great job man!!
@akshaymarch7
@akshaymarch7 4 жыл бұрын
Big fan of your drawings and comics. 😍
@ananyajain8528
@ananyajain8528 2 жыл бұрын
Thank you Akshay for all the wonderful and easy explaination. I always watch your videos before the interviews. ♥️
@commondev2595
@commondev2595 2 жыл бұрын
Your videos are enough to crack most of the JavaScript inteviews
@anitasunildesai
@anitasunildesai 3 ай бұрын
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🙏🏼.
@kodee2
@kodee2 2 жыл бұрын
Came to this after being asked what is prototypical inheritance in JS during an interview and not REALLY knowing. Thanks!
@guyfromdoon
@guyfromdoon 4 жыл бұрын
Finally, all doubts are cleared🔥🔥. Thank you so much sir for such amazing content. Please post more knowledgeable videos like this. BTW i m from Dehradun 🤣🤣
@SachinPatel-iw5qi
@SachinPatel-iw5qi 3 жыл бұрын
Best explanation i've ever found out on prototype chaining..
@danielgolden90
@danielgolden90 2 жыл бұрын
Bravo. Great, simple, and clear explanation. Thank you.
@sumer9999
@sumer9999 5 жыл бұрын
Great Work Akshay, thanks for posting this
@armankabir8737
@armankabir8737 Жыл бұрын
Concepts clear within just 20 minutes, in which i was struggling for days. Thanks vaiya. Love from Bangladesh.
@TheUltimateTrainJourney
@TheUltimateTrainJourney 4 жыл бұрын
Wonderful last 13 years working in JavaScript still was confused
@gopalbharadva1390
@gopalbharadva1390 2 жыл бұрын
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.
@DS-zr9gv
@DS-zr9gv 4 жыл бұрын
Paused midway just to comment - this is by far the most penetrable vdo on prototype
@swayambhagwan
@swayambhagwan 3 жыл бұрын
You are the best javascript tutor, i am watching all your videos. Great comtent, very helpful 😁
@shresthsrivastava27
@shresthsrivastava27 3 жыл бұрын
WOW ! :-D it's indeed an awesome explanation, got this concept cleared, thanks a lot bro :-)
@SubhraKDas-zg6jf
@SubhraKDas-zg6jf 4 жыл бұрын
Such a graceful explanation.
@Aram64
@Aram64 2 жыл бұрын
By far, the best explanation of prototype and __proto__. Thanks.
@ayikkathilkarthik4312
@ayikkathilkarthik4312 3 жыл бұрын
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.
@mdasadazam6161
@mdasadazam6161 2 жыл бұрын
awesome video... cleared all my doubts without having to watch 100s of videos
@dipteshmukherjee346
@dipteshmukherjee346 3 жыл бұрын
guru ho aap , real guru , love the way you teach
@namankeshari7332
@namankeshari7332 10 ай бұрын
Your videos are actually making me understand javascript deeply!
@piyu1919
@piyu1919 4 жыл бұрын
YOU ARE A AMAZING TEACHER...PLS MAKE MORE VIDEOS
@YashCurious
@YashCurious Жыл бұрын
Thank you Bhaiya for explaining those terms beautifully, I'm glad that you made the video on it.
@varisumrania
@varisumrania 2 жыл бұрын
great videos with proper information. You r doing great work!! . Thanks for sharing ur knowledge nicely and clean .
@ankitpandey349
@ankitpandey349 Жыл бұрын
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😇😇😇
@mustang7ist
@mustang7ist 2 жыл бұрын
Wow, your break things down so very well. Thank you for this!!
@evergreen7781
@evergreen7781 2 жыл бұрын
You make things so simple. I would love to join Uber, because Akshay is there ❤️
@parulagg27
@parulagg27 3 жыл бұрын
Probably the best explanation so far. I had multiple confusions around this topic previously, but they all got cleared through this. Thank you for making this video 😃🔥
@akshaymarch7
@akshaymarch7 3 жыл бұрын
Do watch `Namaste JavaScript` series also, you'll love it. 🔥
@parulagg27
@parulagg27 3 жыл бұрын
@@akshaymarch7 for sure. thanks for the suggestion 🙌🏻
@akshaymarch7
@akshaymarch7 3 жыл бұрын
@@parulagg27 Here's the KZbin link for that video series - kzbin.info/www/bejne/pn-Zm55mqrqlepo
@diwakaryadav4853
@diwakaryadav4853 5 жыл бұрын
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
@zarinamurattalks
@zarinamurattalks Жыл бұрын
Thank you Akshay! Your videos are helping me to understand things that I could not understand!
@saishree1000
@saishree1000 3 жыл бұрын
Thank you dear Friend! super now i cleared with prototype. Can you suggest how to improve logic skills for who coming from designing background people? its most helpful to others.
@abrahakahsay
@abrahakahsay Жыл бұрын
Liked and subscribed! Now, you are on my list for more references. Thanks, man.
@deepankarsen4511
@deepankarsen4511 4 жыл бұрын
Akshay bhai aapka samjhane ka tarika bohot gazab hain, thanks... : )
@akhileshrai7908
@akhileshrai7908 2 жыл бұрын
Feels like both of us studied from ‘understanding weird part of JavaScript’ course
@fatimaiqra2169
@fatimaiqra2169 3 күн бұрын
u explained very well, thanks a lot!
@ashirbadbehera5544
@ashirbadbehera5544 4 жыл бұрын
THE BEST EXPLANATION....
@JS-zm5se
@JS-zm5se 3 жыл бұрын
Keep posting amazing videos like this.
@SoorajJose1
@SoorajJose1 Жыл бұрын
Finally i got what is Prototype and Prototypal Inheritance, thanks bro
@kaleemelahishaikh7990
@kaleemelahishaikh7990 2 жыл бұрын
Very helpful dude 🎉 Thanks for sharing your knowledge 👍🏻
@ranjanrnj6864
@ranjanrnj6864 3 жыл бұрын
Thanks a lot Akshay, clear video of what I expected
@AdityaSingh-hx1tv
@AdityaSingh-hx1tv 2 жыл бұрын
Finally a video that cleared my confusion 🙂🙂
@adityaverma7393
@adityaverma7393 2 жыл бұрын
Coming here after watching Functional programming video and surprisingly seeing my name in your example somehow made my day ! :P
@sreerup_dhrino
@sreerup_dhrino 3 жыл бұрын
Simply loved it ❤️
@saadrehman3156
@saadrehman3156 2 жыл бұрын
Great work buddy, much appreciated. Now my concepts are crystal clear. Thanks and love from Pakistan
@moviecentral4225
@moviecentral4225 4 жыл бұрын
I was looking this kind of explanation and i found.
@Alex-hu8gj
@Alex-hu8gj 2 жыл бұрын
That was Gold :) Thanks. Now I understand it. Keep it up. I would like to see full website E-comers Project with Lots of animations implemented paid system etc.. :):)
@thimothy1213
@thimothy1213 2 жыл бұрын
Honestly, i like ur typing sound so much.
@kirtisahai8745
@kirtisahai8745 3 жыл бұрын
Your videos are amazing. I love them. Please make more.
@nikhilchaubey5889
@nikhilchaubey5889 5 жыл бұрын
Thanks for this amazing video sir.....Please make a video on Promises and Closures if these topics are asked in an interview.
@akshaymarch7
@akshaymarch7 5 жыл бұрын
Yes, these topics are really very important. Will be covering those in the upcoming videos.
@WahabShah23
@WahabShah23 Жыл бұрын
Wow and Whao! Mic Dropped! 🎤
@karthiksridharan3361
@karthiksridharan3361 3 жыл бұрын
Didn't get it on mdn docs ,but your great video helped, one question though, what is the prototype chain for constructor
@dequan300
@dequan300 9 ай бұрын
Great watch and great explanation of inheritance in js
@amrishpatidar2579
@amrishpatidar2579 3 жыл бұрын
i learned many great things from you .thanks
@santhoshn31
@santhoshn31 2 жыл бұрын
Thank you for sharing this video. I learned a lot from it.
@Manish-ee8kx
@Manish-ee8kx Жыл бұрын
very clear explanation i watched many videos but this video is very understandable.
@saurabhagrawal3934
@saurabhagrawal3934 3 жыл бұрын
thumbs up to the free tutorials in the world of wolf gupta
@RaviTeja-gq5wm
@RaviTeja-gq5wm 4 ай бұрын
Akshay Explanation is like: So Beautiful, So Elegant Looking Like a Wow. Really great explanation Akshay, its that simple. You have best teaching skills... Super👌👌👌
@deveshagarwal660
@deveshagarwal660 Жыл бұрын
Got asked this question in Interview today, had no idea what it is. I guess, should have watched this earlier.
@prafull3313
@prafull3313 3 жыл бұрын
Akshay... I really want to understand why should we modify __proto__ as shown in the video? And what are the valid (or legal) ways to modify __proto__?
@chetanmohol8850
@chetanmohol8850 2 жыл бұрын
You are really good in JavaScript.. thanks for this video
@thespirtualhub
@thespirtualhub 3 жыл бұрын
Your videos is really helpful. Thanks for this video.
@prajwaljain1282
@prajwaljain1282 3 жыл бұрын
I am really curious to know why does it cause a huge performance issue!What runs behind the scenes? And yes You are a Role Model💎🔥🙏
@jayeshbagul3961
@jayeshbagul3961 8 ай бұрын
I am new on your channel and js too, but you are not disappointed me, thank you
Throttling in Javascript | Walmart Frontend Interview Question
22:22
SHE WANTED CHIPS, BUT SHE GOT CARROTS 🤣🥕
00:19
OKUNJATA
Рет қаралды 6 МЛН
Stupid man 👨😂
00:20
Nadir Show
Рет қаралды 27 МЛН
Uma Ki Super Power To Dekho 😂
00:15
Uma Bai
Рет қаралды 41 МЛН
How i create a wordpress website builder for my web design company
10:14
Millennials Website
Рет қаралды 322
Visually Understanding JavaScript Prototypes
14:58
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 52 М.
call, apply and bind method in JavaScript
10:50
Akshay Saini
Рет қаралды 425 М.
Inheritance in JavaScript - Prototypal Inheritance tutorial
20:06
9.19: Prototypes in Javascript - p5.js Tutorial
19:24
The Coding Train
Рет қаралды 256 М.
Debouncing in Javascript | Flipkart UI Interview Question
16:20
Akshay Saini
Рет қаралды 210 М.
CRAZY JS INTERVIEW 🤯ft. Closures | Namaste 🙏 JavaScript Ep. 12
32:45
JavaScript Prototypal inheritance - Tutorial
15:29
ColorCode
Рет қаралды 66 М.
SHE WANTED CHIPS, BUT SHE GOT CARROTS 🤣🥕
00:19
OKUNJATA
Рет қаралды 6 МЛН