Prototype In JavaScript | JavaScript Object Prototype | Prototype Inheritance JavaScript

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

КОМЕНТАРІ • 21

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

    JavaScript Tutorials Playlist: ua-cam.com/play/PLjwm_8O3suyM61TZY1w5ufD12nRQCtd2N.html
    JavaScript Projects Playlist: ua-cam.com/play/PLjwm_8O3suyOgDS_Z8AWbbq3zpCmR-WE9.html

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

    Started learning Java 2 weeks ago. Halfway through this video and I can understand this so much better than if I didn’t understand objects and inheritance. Thank you

  • @fatimaiqra2169
    @fatimaiqra2169 3 місяці тому

    you explained very well, thank you so much!

  • @teddyzinovieva2011
    @teddyzinovieva2011 11 місяців тому

    A very good explanation. Thank you!

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

    Thanx Brother waiting for next video to come

  • @neeola2567
    @neeola2567 9 місяців тому

    Thank you, it was well explained

  • @user-em9kt2xc1b
    @user-em9kt2xc1b 10 місяців тому

    Excellent teaching!

  • @TanguduSravani-t6o
    @TanguduSravani-t6o 2 місяці тому

    Super explanation

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

    thanks dude youre the best

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

    Sir you start a full course for react , JavaScript and python

  • @blazingguyop
    @blazingguyop 7 місяців тому

    Great video brother ❤

  • @user-qe9hc4kv7x
    @user-qe9hc4kv7x 2 місяці тому

    Best video of javascript prototype ❤ for beginners

  • @nursultannurlanov71
    @nursultannurlanov71 11 місяців тому

    hi! Did you made up getFullName method? I mean it wasn't built in js right?

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

    This isnt inheritance, this is dependency injection handled through reflection.

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

    sir please tell me any javascript book (not beginners book)
    I live in india

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

    i found when you want to use arrow function in prototype it dosent work you have to notice the Function keyword.

    • @blazingguyop
      @blazingguyop 7 місяців тому +1

      There are some rules in Arrow function

    • @raoimtinan5051
      @raoimtinan5051 4 місяці тому +1

      i think becuse to access property in prototype use this keyword and in arrow function this keyword go to global scope this reason arrow function not work but simple function allow this keyword so this property when use in simple function it can access value in prototype

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

    You are the best

  • @rizwansaifi3590
    @rizwansaifi3590 3 місяці тому

    10:46 you are not changing the prototype's property age but you are changing the whole prototype object by using {age:52}
    if you did Person.prototype.age=52 then all objects new ones and old ones will have same age value . The behaviour in your case Is because of old objects still pointing at the old prototype object which had the age value as 25 . And when you changed the whole prototype object on line 5 any object declared after that will have this other prototype object .
    Summary changing prototype object and changing prototype object's property have different behaviours

  • @jeanrodrigues6249
    @jeanrodrigues6249 9 місяців тому

    nome