Exercises: Prototypes and Prototypal Inheritance - Javascript In Depth

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

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

  • @nadeem-cp9is
    @nadeem-cp9is 8 หลายเดือนก่อน +3

    best teacher ever 👏👏👏👏👏👏

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

    "arrays are basically just glorified objects" ,
    oh and by the way nader, your explanation is really clear, love that

  • @nanlunglongtau2076
    @nanlunglongtau2076 8 หลายเดือนก่อน +2

    Discovering this channel is like discovering gold

  • @Kerwell
    @Kerwell 12 วันที่ผ่านมา

    100% extremely clear, love this

  • @macmacmac740
    @macmacmac740 10 หลายเดือนก่อน +3

    This playlist is a gem. Detailed, well organised and great explanations. Plus the Github repo where all the code is amazing as well. Thank you Nader for putting this all together.
    One questions regarding the exercise #3.
    I understood that when we modify the stock array, it gets updated for all because array and objects are references.
    However, for the name property which we also update, does not get updated for all. Instead all the new objects created now has there own name.
    Is this different behaviour between 'name' and 'stock' because name is primitive type(string/by-value) and stock is array(non primitive/by-reference type)?

    • @TechWithNader
      @TechWithNader  9 หลายเดือนก่อน

      Yup, that's exactly right! The String itself is a value type not a reference type (in js) so it's a new separate value each time or change :)

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

    Clear as crystal

  • @eduardoontiveros-oi5ej
    @eduardoontiveros-oi5ej 2 หลายเดือนก่อน

    amaizing, you really made it incredibly digestible to understand this topic. kudos for te order of the topics aswell shows how well tought the course is

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

    love this video

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

      Thanks! It was was making these - glad you’re finding them useful 😊

  • @raulbonillaclaramunt
    @raulbonillaclaramunt 3 หลายเดือนก่อน

    Nader, so good! Thanks once again...

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

    congrats ! man for 1k subscriber brother , hope you will get 1 million one day 💌

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

      Thanks! I’m really glad these videos are able to help more people get started and really learn these topics. 😊

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

      @@TechWithNader brother do you have any plan to make a react js course after the Javascript course?

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

      @@madfoodhunter Absolutely! Going to move to the DOM first so we understand the fundamentals then do React 😊

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

    weird I get a typeError in the bonus exercise...
    function Person(name) {this.name=name};
    const cleo = Person("Cleo");
    TypeError: Cannot set properties of undefined(setting 'name')

    • @peter-jb
      @peter-jb ปีที่แล้ว

      weird asf

  • @rylee5233
    @rylee5233 10 หลายเดือนก่อน +2

    HAHAHAHAHA If using boop as the function name makes laugh uncontrollably, why don't you let the cat and boop go? It cracks me up every time you say boop you can't help but laugh, but then you're trying your best to stay serious about the knowledge point.