Exercises: Prototypes and Prototypal Inheritance - Javascript In Depth

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

КОМЕНТАРІ • 19

  • @nadeem-cp9is
    @nadeem-cp9is 8 місяців тому +3

    best teacher ever 👏👏👏👏👏👏

  • @nanlunglongtau2076
    @nanlunglongtau2076 8 місяців тому +2

    Discovering this channel is like discovering gold

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

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

  • @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 :)

  • @Kerwell
    @Kerwell 9 днів тому

    100% extremely clear, love this

  • @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

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

    Clear as crystal

  • @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 😊

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

    love this video

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

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

  • @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')

  • @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.