JavaScript Question: What is a Prototype?

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น • 91

  • @ahmedr.
    @ahmedr. 2 ปีที่แล้ว

    showing it visually is fantastic . For the first time since I started learning Js a year ago, I can now build a strong Object understanding. BIG THANKS

    • @AllThingsJavaScript
      @AllThingsJavaScript  2 ปีที่แล้ว +1

      Great to hear!

    • @ahmedr.
      @ahmedr. 2 ปีที่แล้ว

      @@AllThingsJavaScript Truely thank you . I subscribed to keep following your wonderful content. I am watching complete playlists of your channel .

  • @noelsalvador5979
    @noelsalvador5979 2 ปีที่แล้ว

    I have just discovered your channel and it's incredible the vast JS knowledge you have. Sir, from now on you are my JS reference!

  • @beatboss9275
    @beatboss9275 3 ปีที่แล้ว

    Not kidding I saw 10 videos on prototype and all of them were confusing because they were including other topics to explain it. But this tutorial is simple and effective and focuses on prototype only and the definition in the beginning helps a lot . Thanks @All Things JavaScript, LLC for clearing my doubt.

  • @adante407
    @adante407 6 ปีที่แล้ว +3

    I have just discovered your channel, and the Javascript tutorials are great. I feel like I have stagnated with the Js Tutorials on you tube. Only so many loops and if/else tuts you can watch. Its great that you're moving on to concepts that branch out from the beginner, beginner tuts that you tube is flooded with. 👍

  • @onibahashmi184
    @onibahashmi184 2 ปีที่แล้ว

    Nice Tutorial. Clear voice in simple english.

  • @ilirpeposhi9656
    @ilirpeposhi9656 6 ปีที่แล้ว +2

    much probably the best tutorial on js, deep and simple, thank you sir

  • @omar99ize
    @omar99ize 7 ปีที่แล้ว +6

    Finally I could understand prototypes. the graphics you provided helped a lot. Plus you are a great teacher. not every person has this gift!

  • @soumyaranjanpradhan1325
    @soumyaranjanpradhan1325 4 ปีที่แล้ว

    Really , I had seen all videos of prototype lastly by your video I understand this concept !! Amazing video keep it up !!

  • @westfield90
    @westfield90 6 ปีที่แล้ว +1

    Just purchased your course. Thank you for a great clear teaching style

  • @ingvankhinh6041
    @ingvankhinh6041 5 ปีที่แล้ว +1

    thank you so much sir very useful i was struggling on this topic for a long time now i can understand the concept of it.

  • @joeyammar699
    @joeyammar699 3 ปีที่แล้ว

    All I can say Sir, your explanation made this hard concept very easy. Many thanks ....

  • @sujaytalukder2606
    @sujaytalukder2606 6 ปีที่แล้ว +3

    very clear explanation sir.

  • @graceji4082
    @graceji4082 7 ปีที่แล้ว +2

    awesome video!!!!! I was struggling to understand the concept of prototype. This video helped me a lot. Thank you so much!

  • @daniellima5954
    @daniellima5954 5 ปีที่แล้ว +1

    Finally understood this subject. Thanks a LOT

  • @martinlutherkingjr.5582
    @martinlutherkingjr.5582 4 ปีที่แล้ว +1

    I noticed a numbering scheme in your videos, are the videos in your playlists in any particular order? Some of the previous videos discussed prototypes but now this video actually tells us noobs what a prototype is.

    • @AllThingsJavaScript
      @AllThingsJavaScript  4 ปีที่แล้ว

      The playlists are categories, so everything in the playlist is for a specific category. However, they don't go in a particular order. That is why I create the courses because then I can impose an order.

  • @jonatankruszewski53
    @jonatankruszewski53 3 ปีที่แล้ว

    Amazing content. Crystal clear.

  • @westfield90
    @westfield90 6 ปีที่แล้ว +3

    Excellent video

  • @ayasswain
    @ayasswain 5 ปีที่แล้ว

    Very Nice explanation on prototypes. IS there any video on javascript classes?

    • @AllThingsJavaScript
      @AllThingsJavaScript  5 ปีที่แล้ว

      I don't believe I have done one on classes yet, but will add it to the list.

  • @teodordimitrov7062
    @teodordimitrov7062 6 ปีที่แล้ว +2

    Amazing tutorial. Thanks you!

  • @alexluy6527
    @alexluy6527 4 ปีที่แล้ว +1

    Amazing explanation.

  • @itsdannyftw
    @itsdannyftw 7 ปีที่แล้ว +1

    I think it would be good here if you talked about the difference between the private linkage to the object [[Prototype]] and the public linkage __proto__ (which browsers support but isn't recommended!)

    • @AllThingsJavaScript
      @AllThingsJavaScript  7 ปีที่แล้ว +2

      Thanks for the input! Good thoughts for a follow up.

  • @pramodkumarw
    @pramodkumarw 6 ปีที่แล้ว

    you look like "javascript surgeon" who tear down javascript for deep dive understanding.awesome

  • @sifatgamil4757
    @sifatgamil4757 3 ปีที่แล้ว

    I dont search in utube . but today i couldnt have a clear concept about prototype after reading books , w3 school, mdn . but atfter this video it became so clear

  • @babakboom
    @babakboom 5 ปีที่แล้ว

    Amazingly clear video! Thank you!

  • @manhill8833
    @manhill8833 4 ปีที่แล้ว

    Needed this... thanks. It all came together now.

  • @CrusaderMen
    @CrusaderMen 6 ปีที่แล้ว +3

    Subscribed!
    Thank you you helped me alot!

  • @josephyankey8765
    @josephyankey8765 3 ปีที่แล้ว

    Brilliant explanation

  • @VIjayKumartheh2o
    @VIjayKumartheh2o 5 ปีที่แล้ว +3

    This is probably the best explanation I could ever get !! :P)

  • @matthewchansavage3699
    @matthewchansavage3699 5 ปีที่แล้ว +1

    great explanation!

  • @modestas2890
    @modestas2890 7 ปีที่แล้ว +2

    Amazing video bro, thanks!

  • @rolandpierrelouis4013
    @rolandpierrelouis4013 5 ปีที่แล้ว

    Thank you for this tuto ! it helps ! is there a difference between _proto_ and prototype ?

  • @yordanialonso4272
    @yordanialonso4272 5 ปีที่แล้ว

    How do you Link prototype chains?

    • @AllThingsJavaScript
      @AllThingsJavaScript  5 ปีที่แล้ว

      Simply by assigning a prototype object to an object. Once assigned that prototype chain is valid for that object.

  • @rorjackson
    @rorjackson 4 ปีที่แล้ว

    What a lovely explanation 💕

  • @aquilhall262
    @aquilhall262 4 ปีที่แล้ว +1

    kind of like the extends keyword in Java!

  • @bshibishi5889
    @bshibishi5889 3 ปีที่แล้ว +1

    Thank you internet man.

  • @davejookhuu5041
    @davejookhuu5041 4 ปีที่แล้ว

    Once again, Thank you very much and yet another good reason to get your tutorial on Udemy which I'm... :) Happy Coding

  • @thriveniaswi4483
    @thriveniaswi4483 7 ปีที่แล้ว

    Thanks for tutorial . its good and i have cleared few doubts for prototype concept. I am having one doubt :
    var obj = { company : "hi"}, what is the difference between
    obj.__proto__.text= 10; and obj.text = 10 ? both are adding adding prototype, why two different ways ? is there any specfic reason for this declaration?

    • @AllThingsJavaScript
      @AllThingsJavaScript  7 ปีที่แล้ว +1

      __proto__ adds the text attribute to the prototype object. obj.text adds it to the object itself. So really you are adding it to 2 different locations (objects).

  • @k4qdex
    @k4qdex 6 ปีที่แล้ว +2

    thanks a lot for this.

  • @webylancers5607
    @webylancers5607 2 ปีที่แล้ว +1

    MashAllah Aameen 🙏🤲😍

  • @subodhpawar8094
    @subodhpawar8094 4 ปีที่แล้ว

    Thanks Mahn. Pretty useul

  • @Zen-lz1hc
    @Zen-lz1hc 3 ปีที่แล้ว

    Best video on prototypes ever !
    Thank You
    =_=

  • @feninsam4156
    @feninsam4156 7 ปีที่แล้ว

    Wow thanks. Awesome tutorial

  • @Cnaghk
    @Cnaghk 3 ปีที่แล้ว

    thanks dude it's helpful

  • @codeative
    @codeative 5 ปีที่แล้ว

    very nice explanation !

  • @lesnaSvalka
    @lesnaSvalka 4 ปีที่แล้ว

    That was a great video. You got my like and subscribe. 💯👍

  • @mdmasud5888
    @mdmasud5888 7 ปีที่แล้ว +1

    Very helpful tutorial

  • @nero1563
    @nero1563 6 ปีที่แล้ว

    Very good video Thank you!

  • @sakar.aatmak
    @sakar.aatmak 7 ปีที่แล้ว

    really helpful,..finally i could understand this...thank u

  • @JonnVendass21
    @JonnVendass21 4 ปีที่แล้ว

    nice job, thnx

  • @LeandroOliveira-kn9qx
    @LeandroOliveira-kn9qx 7 ปีที่แล้ว

    very nice , very clear

  • @benzflynn
    @benzflynn 2 ปีที่แล้ว

    So a JavaScript Prototype is like a parent class in Java language. Derived classes inherit the properties and methods of the parent. A default parent class for non-primitives is the Object class.

    • @AllThingsJavaScript
      @AllThingsJavaScript  2 ปีที่แล้ว

      Similar. However, the prototype retains the properties and methods. They are only borrowed by the instance object. They are not added to the instance like they are in class relationship.

    • @benzflynn
      @benzflynn 2 ปีที่แล้ว

      @@AllThingsJavaScript Just borrowed and returned . . . well, sorry if I sold your definition short 😆

  • @mamotivated
    @mamotivated 5 ปีที่แล้ว

    Nice job

  • @Niamat-w9s
    @Niamat-w9s 6 ปีที่แล้ว

    thanks

  • @hossamadel7290
    @hossamadel7290 5 ปีที่แล้ว

    thanks a lot

  • @rushiastheycallme
    @rushiastheycallme 7 ปีที่แล้ว

    superb!

  • @SebastianGamboaQ
    @SebastianGamboaQ 6 ปีที่แล้ว

    Very helpful!!!! Thanks so much :DDD!!!

  • @Arty47
    @Arty47 5 ปีที่แล้ว

    Cool

  • @jordanspano
    @jordanspano 5 ปีที่แล้ว +1

    Great video, but I had to play it at 1.25 speed.

  • @lav4eee
    @lav4eee 3 ปีที่แล้ว

    Hi. I think that you made a little mistake. You said: A prototype is automatically assigned to any object. But you also said: Almost every object is linked to another object because the default object doesn't have a prototype and we could create an object without a prototype. I think that more correctly would be the following: A prototype is automatically assigned to ALMOST any object.

    • @AllThingsJavaScript
      @AllThingsJavaScript  3 ปีที่แล้ว +1

      Probably the best way to say it is a prototype is assigned to every object unless the object creator chooses not to have that happen.

  • @Pareshbpatel
    @Pareshbpatel 3 ปีที่แล้ว

    {2021-09-23}

  • @bilaltariq50
    @bilaltariq50 6 ปีที่แล้ว +42

    Finally I could understand prototypes. the graphics you provided helped a lot. Plus you are a great teacher. not every person has this gift!

    • @AllThingsJavaScript
      @AllThingsJavaScript  6 ปีที่แล้ว +1

      Thanks for the positive feedback!!

    • @CameronChardukian
      @CameronChardukian 5 ปีที่แล้ว +1

      Agreed, being able to visualize things definitely helped cement our ability to understand

  • @ughdeeb
    @ughdeeb 3 ปีที่แล้ว

    Great explanation! Thank you!