Prototype and Prototypal Inheritance in Javascript | Frontend Interview Question

  Рет қаралды 361,248

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

Пікірлер: 453
@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 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
@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.
@sohailmohammed4024
@sohailmohammed4024 4 ай бұрын
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
@prateekgautam7398
@prateekgautam7398 4 жыл бұрын
Honestly, Your last mybind example made me understand even more better. That was good. Keep up the good work sir.
@countmein5164
@countmein5164 2 жыл бұрын
Idk wtf I was doing 3 yrs ago but here I am. Learning js from gold contents. Thanks for Namaste JavaScript episodes🎉
@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.
@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
@dhruvthakkar4350
@dhruvthakkar4350 2 жыл бұрын
Extremely well explained. I watched from udemy paid course but couldn't understand. but this person explained me perfectly.
@ashwanikumar183
@ashwanikumar183 4 жыл бұрын
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 ♥
@NuhAleph
@NuhAleph 4 жыл бұрын
I found my javascript tutor. Thank you, god bless you.
@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!!
@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.
@bhaveshmaisuria544
@bhaveshmaisuria544 4 жыл бұрын
Really Deep dive coching. First time clearing concepts...Rocking.
@tauseefanwardo
@tauseefanwardo 2 жыл бұрын
I was lost and here you are man! Lovely, marvelous, mind boggling, seriously man, you make javascript fun to learn.
@abs542
@abs542 3 жыл бұрын
Very helpful. Easily understood otherwise a highly confusing topic. Keep up the good work.
@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
@rishikeshsanjekar1349
@rishikeshsanjekar1349 2 жыл бұрын
I've watched many JS tutorial on KZfaq but your explanation is totally different You are JavaScript King 👑
@rohitkudalkar92
@rohitkudalkar92 4 жыл бұрын
i feel lucky to found your channel. Love ❤️ and Support.
@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.
@gururajchadaga
@gururajchadaga 2 жыл бұрын
This channel's content gives me so much confidence. Thank you so much.
@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.
@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!
@commondev2595
@commondev2595 2 жыл бұрын
Your videos are enough to crack most of the JavaScript inteviews
@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 !
@SachinPatel-iw5qi
@SachinPatel-iw5qi 3 жыл бұрын
Best explanation i've ever found out on prototype chaining..
@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
@dipteshmukherjee346
@dipteshmukherjee346 3 жыл бұрын
guru ho aap , real guru , love the way you teach
@ameyzulkanthiwar9148
@ameyzulkanthiwar9148 5 жыл бұрын
Thank you for explaining in a practical way. It is very helpful.
@adityaagrawal4466
@adityaagrawal4466 Жыл бұрын
you know what's more beautiful than functions in javascript, it's your teaching style ❤
@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 :)
@jeet_aj77
@jeet_aj77 Жыл бұрын
2,3 jagah videos dekhi samajh nahi aaya bilkul bhi...yha akdam mast samajah aaya. Thank you bro❤
@vishwasrvishu9267
@vishwasrvishu9267 3 жыл бұрын
The most important thing I like in your videos …. You always have that confidence on :-)
@Aram64
@Aram64 3 жыл бұрын
By far, the best explanation of prototype and __proto__. Thanks.
@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)
@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 ..
@ananyajain8528
@ananyajain8528 2 жыл бұрын
Thank you Akshay for all the wonderful and easy explaination. I always watch your videos before the interviews. ♥️
@namankeshari7332
@namankeshari7332 11 ай бұрын
Your videos are actually making me understand javascript deeply!
@anitasunildesai
@anitasunildesai 4 ай бұрын
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🙏🏼.
@mdasadazam6161
@mdasadazam6161 2 жыл бұрын
awesome video... cleared all my doubts without having to watch 100s of videos
@SubhraKDas-zg6jf
@SubhraKDas-zg6jf 4 жыл бұрын
Such a graceful explanation.
@mustang7ist
@mustang7ist 2 жыл бұрын
Wow, your break things down so very well. Thank you for this!!
@jayeshbagul3961
@jayeshbagul3961 9 ай бұрын
I am new on your channel and js too, but you are not disappointed me, thank you
@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.
@sumer9999
@sumer9999 5 жыл бұрын
Great Work Akshay, thanks for posting this
@ranjanrnj6864
@ranjanrnj6864 3 жыл бұрын
Thanks a lot Akshay, clear video of what I expected
@XYZ-bz8tf
@XYZ-bz8tf 2 жыл бұрын
Yesterday I wasted my 3-4 hours on this topic with some videos on KZfaq. 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.
@zarinamurattalks
@zarinamurattalks Жыл бұрын
Thank you Akshay! Your videos are helping me to understand things that I could not understand!
@danielgolden90
@danielgolden90 2 жыл бұрын
Bravo. Great, simple, and clear explanation. Thank you.
@swayambhagwan
@swayambhagwan 3 жыл бұрын
You are the best javascript tutor, i am watching all your videos. Great comtent, very helpful 😁
@YashCurious
@YashCurious Жыл бұрын
Thank you Bhaiya for explaining those terms beautifully, I'm glad that you made the video on it.
@armankabir8737
@armankabir8737 2 жыл бұрын
Concepts clear within just 20 minutes, in which i was struggling for days. Thanks vaiya. Love from Bangladesh.
@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. 😍
@ashirbadbehera5544
@ashirbadbehera5544 4 жыл бұрын
THE BEST EXPLANATION....
@piyu1919
@piyu1919 4 жыл бұрын
YOU ARE A AMAZING TEACHER...PLS MAKE MORE VIDEOS
@abrahakahsay
@abrahakahsay 2 жыл бұрын
Liked and subscribed! Now, you are on my list for more references. Thanks, man.
@kodee2
@kodee2 2 жыл бұрын
Came to this after being asked what is prototypical inheritance in JS during an interview and not REALLY knowing. Thanks!
@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. ❤️
@SoorajJose1
@SoorajJose1 2 жыл бұрын
Finally i got what is Prototype and Prototypal Inheritance, thanks bro
@SiddhantKulshrestha
@SiddhantKulshrestha 10 ай бұрын
Bhaisaab , I was so confused in this topic ... Akshay bhai ...Dil se shukriya ..❤
@varisumrania
@varisumrania 2 жыл бұрын
great videos with proper information. You r doing great work!! . Thanks for sharing ur knowledge nicely and clean .
@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. :)
@fatimaiqra2169
@fatimaiqra2169 Ай бұрын
u explained very well, thanks a lot!
@amrishpatidar2579
@amrishpatidar2579 3 жыл бұрын
i learned many great things from you .thanks
@kirtisahai8745
@kirtisahai8745 3 жыл бұрын
Your videos are amazing. I love them. Please make more.
@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.
@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 жыл бұрын
❤️
@thespirtualhub
@thespirtualhub 3 жыл бұрын
Your videos is really helpful. Thanks for this video.
@Manish-ee8kx
@Manish-ee8kx 2 жыл бұрын
very clear explanation i watched many videos but this video is very understandable.
@vijaykumar-wq9db
@vijaykumar-wq9db 3 жыл бұрын
Great...Thank you...got my concept clear
@prernasingh9186
@prernasingh9186 3 жыл бұрын
Your explanation is just awsm.....Thankyou...
@bw7891
@bw7891 4 жыл бұрын
very good tutorial very useful. thank you Akshay.
@AdityaSingh-hx1tv
@AdityaSingh-hx1tv 3 жыл бұрын
Finally a video that cleared my confusion 🙂🙂
@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
@shresthsrivastava27
@shresthsrivastava27 3 жыл бұрын
WOW ! :-D it's indeed an awesome explanation, got this concept cleared, thanks a lot bro :-)
@JS-zm5se
@JS-zm5se 3 жыл бұрын
Keep posting amazing videos like this.
@hanmantjankar7544
@hanmantjankar7544 2 жыл бұрын
You made this very easy to understand. Thank you!!!
@kysivaram
@kysivaram 2 жыл бұрын
The best explanation on js prototype 👌🏻👌🏻
@deepankarsen4511
@deepankarsen4511 4 жыл бұрын
Akshay bhai aapka samjhane ka tarika bohot gazab hain, thanks... : )
@rajeshnarra8089
@rajeshnarra8089 Жыл бұрын
Simple and clean. Thanks bro
@dequan300
@dequan300 10 ай бұрын
Great watch and great explanation of inheritance in js
@santhoshn31
@santhoshn31 2 жыл бұрын
Thank you for sharing this video. I learned a lot from it.
@sachikanahashimoto710
@sachikanahashimoto710 Жыл бұрын
great concise nd clear explanation.Thankyou so much👍😀
@hamzahbanday8956
@hamzahbanday8956 2 жыл бұрын
this video is a life savior!
@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😇😇😇
@amiturfnd
@amiturfnd 4 жыл бұрын
Mast, sab clear ho gaya. Thanks bro.
@sreerup_dhrino
@sreerup_dhrino 4 жыл бұрын
Simply loved it ❤️
@chetanmohol8850
@chetanmohol8850 2 жыл бұрын
You are really good in JavaScript.. thanks for this video
@saurabhagrawal3934
@saurabhagrawal3934 3 жыл бұрын
thumbs up to the free tutorials in the world of wolf gupta
@himanshuaggarwal8415
@himanshuaggarwal8415 2 жыл бұрын
Thanks a lot man, for such great lesson.
@kaleemelahishaikh7990
@kaleemelahishaikh7990 2 жыл бұрын
Very helpful dude 🎉 Thanks for sharing your knowledge 👍🏻
@shubhamsonawane967
@shubhamsonawane967 2 жыл бұрын
Very helpful thanks for sharing your knowledge.
@nauilnil4074
@nauilnil4074 8 ай бұрын
This video is such helpful to this topic, thank you!!!
@thimothy1213
@thimothy1213 2 жыл бұрын
Honestly, i like ur typing sound so much.
@moviecentral4225
@moviecentral4225 4 жыл бұрын
I was looking this kind of explanation and i found.
@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
@TheUltimateTrainJourney
@TheUltimateTrainJourney 4 жыл бұрын
Wonderful last 13 years working in JavaScript still was confused
@AICreativityTime
@AICreativityTime Жыл бұрын
Thanks for clearning my confusion.
@frankalimimian7479
@frankalimimian7479 Жыл бұрын
This was amazing I learnt alot from this video
@fake_captain
@fake_captain 4 жыл бұрын
Thank you so much ..It was really helpful..
Throttling in Javascript | Walmart Frontend Interview Question
22:22
Купили айфон для собачки #shorts #iribaby
00:31
They RUINED Everything! 😢
00:31
Carter Sharer
Рет қаралды 26 МЛН
A pack of chips with a surprise 🤣😍❤️ #demariki
00:14
Demariki
Рет қаралды 35 МЛН
Magic of Prototype in javascript | chai aur #javascript
48:08
Chai aur Code
Рет қаралды 93 М.
Inheritance in JavaScript - Prototypal Inheritance tutorial
20:06
JavaScript prototype in Hindi  | Examples | Interview Questions
27:31
Code Step By Step
Рет қаралды 30 М.
call, apply and bind method in JavaScript
10:50
Akshay Saini
Рет қаралды 435 М.
Local Storage & Session Storage [ with Code Examples ]
14:52
Akshay Saini
Рет қаралды 215 М.
What is __proto__ ? | Javascript Prototypes Tutorial
23:11
Dave Gray
Рет қаралды 40 М.