Prototypes and Prototypal Inheritance - Javascript In Depth

Поділитися
Вставка
  • Опубліковано 30 вер 2024

КОМЕНТАРІ • 28

  • @TechWithNader
    @TechWithNader  Рік тому +8

    Hey everyone! Just wanted to add a correction to the last section - The "new" keyword with Prototypes:
    The Animal prototype does not have "type" in it. "Type" is just in the individual instances of Animal. In order to add it to the prototype of Animal, we'd need to do: Animal.prototype.type = _something_; Just like we saw with the Object.prototype before it.
    I also forgot to remove "speak" from the Object prototype from the earlier slide, haha sorry! This again would only be here if we assigned to Object.prototype.speak and then had this code as well.
    Hope that helps and doesn't confuse things more! 😊

  • @nanlunglongtau2076
    @nanlunglongtau2076 6 місяців тому +3

    Discovering this channel is like discovering gold

  • @flnnx
    @flnnx Рік тому +6

    One of the best JS channels on YT! I've been following u for a while now and I've learned so much! Thank you for the awesome in depth content.

    • @TechWithNader
      @TechWithNader  Рік тому +1

      Hey Fln! Thank you so much for the kind words! It really means a lot and it’s comments like this that help me keep going 😊
      If you’re interested, here’s a link to the Discord server we have where we’re also building a community on all this: discord.gg/9SZbqWvMrV

  • @vishalbisht6871
    @vishalbisht6871 Рік тому +3

    Better than 99.9% of prototypal tutorials.

  • @tusharchawla1440
    @tusharchawla1440 2 дні тому

    I am very happy that I am able to understand protoypes just because you explain in very nice manner. ❤❤

  • @nadeem-cp9is
    @nadeem-cp9is 7 місяців тому +2

    you have the gift of being able to teach really well , thank u so much , i am currently watching your js in depth playlist and it's amazing , keep going

  • @kimthan898
    @kimthan898 Рік тому +5

    your content is so underrated

    • @TechWithNader
      @TechWithNader  Рік тому

      Thanks Kim! I hope to keep creating more like this and sharing with the community 😊 Would love to know what makes you say that though vs the other content on youtube!

  • @ОлександрКравчук-п7д
    @ОлександрКравчук-п7д 8 місяців тому +1

    Very good explanation

  • @shivanshmishra7992
    @shivanshmishra7992 Рік тому +4

    This guy has some quality content and great explanations

    • @TechWithNader
      @TechWithNader  Рік тому

      Thanks Shivansh! I’ll keep them coming 😊

  • @Abulkhair1995
    @Abulkhair1995 11 місяців тому +1

    you deserve 100 M subs

  • @ujjwalranjanraoietlucknows8151

    WoW... The only one on YT to actually clear all the fake prototypes.... Really cleared the Objects concepts

    • @TechWithNader
      @TechWithNader  Рік тому +1

      Thanks for the kind words! I'm glad this concept makes sense for you, since this is definitely an important but challenging topic! 🤓

    • @ujjwalranjanraoietlucknows8151
      @ujjwalranjanraoietlucknows8151 Рік тому

      But I got stuck....What does Object.getOwnPropertyNames(Object.__proto__) refers to?
      Object. getOwnPropertyNames (Object.__proto__._proto__) refers to prototype which contains construtor, definegetsetter....
      And one more thing MDN says usage of __proto__ should be discouraged...so how to use Obejct.getPrototypeOf??
      Pls help... I shall be highly thankful

  • @ashishsng
    @ashishsng Місяць тому

    Keep teaching Nader! Awesome content and easy to understand!

  • @randolphcarter4542
    @randolphcarter4542 Місяць тому

    Well done on the explanation.

  • @dharsanr6504
    @dharsanr6504 9 місяців тому +1

    wow you just blew my mind with your amazing explanation nader , thank you soo much for providing such a quality content , keep going : )

  • @techexpertpremiere
    @techexpertpremiere Рік тому +1

    Great explanation of JavaScript prototypes. I truly appreciate your hard work for this video.

  • @kepdani
    @kepdani Рік тому +1

    super interesting video, finally a nice explanation of the topic

  • @samueladehoun9248
    @samueladehoun9248 Рік тому +2

    This is amazing and very clear. Keep up the good work.

    • @TechWithNader
      @TechWithNader  Рік тому

      Thanks Samuel! Glad you found it helpful - this is a tricky topic 😊

  • @rylee5233
    @rylee5233 9 місяців тому +1

    The tutorial is fantastic

  • @mathematics2265
    @mathematics2265 5 місяців тому

    26:58

  • @mahmoud.masoud
    @mahmoud.masoud Рік тому +2

    Great video as usual