Private props getters and setters in javascript

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

КОМЕНТАРІ • 40

  • @HiteshCodeLab
    @HiteshCodeLab  4 роки тому +2

    Full course is FREE and will be available here
    courses.learncodeonline.in/learn/Complete-Javascript-course

  • @Sunny-oc7bo
    @Sunny-oc7bo 4 роки тому +11

    This is a long journey so far. Some more days to go. Will miss these days. Getting up early everyday to watch this tutorial. Completing each video by practicing them. Will majorly miss all these

    • @Sunny-oc7bo
      @Sunny-oc7bo 4 роки тому

      wow. love from hitesh sir. :-)

    • @gauravbhasme7498
      @gauravbhasme7498 4 роки тому

      ​@@Sunny-oc7bo Hey can you please tell me how many videos are left?
      from the playlist, I can see there are 62 videos, is that it?

    • @Sunny-oc7bo
      @Sunny-oc7bo 4 роки тому

      @@gauravbhasme7498 borther i think 7 more videos are left. It will end on next friday.

    • @gauravbhasme7498
      @gauravbhasme7498 4 роки тому

      @@Sunny-oc7bo okay bro thanks for the info

  • @Moonwalkerrabhi
    @Moonwalkerrabhi 3 роки тому

    Amazing content ! I started learning javscript in March from this playlist, and am gonna complete it in few days. great content

  • @devanshsadhotra9649
    @devanshsadhotra9649 4 роки тому +1

    and books me itna lambaaaaaa likha hota hai , aur aapne itne araam se sikha dia

  • @tusharmehta3411
    @tusharmehta3411 4 роки тому +1

    Salute to your dedication sir!

  • @tanishqmanuja
    @tanishqmanuja 4 роки тому +7

    Why it isn't console.log(rock.#courseList) ?

    • @souvikmukherjee9074
      @souvikmukherjee9074 4 роки тому +4

      This specific call gives a syntax error. *SyntaxError: Private field '**#courseList**' must be declared in an enclosing class.* You have to use the getters and setters to callthe private datatype(in this case an array). Directly calling the private data type from the file (where you have exported the User class) throws an error. It will work inside the class confines only. But in that case you have to use *console.log(this.**#courseList**)* with a method of the class. e.g. getCourse() {
      console.log(this.#courseList);
      } . This will call the #courseList.

  • @tyagiharsh607
    @tyagiharsh607 4 роки тому

    I'm loving this more than any other thing.

  • @SamruddhaShah
    @SamruddhaShah 4 роки тому

    hitesh is amazing teacher

  • @alltech-jg9hi
    @alltech-jg9hi 4 роки тому

    Great, Awesome series, super thumbs up Mr Hitesh

  • @bvadirajatantry61
    @bvadirajatantry61 4 роки тому +2

    Seeing no dislikes in this video made me happy, Because this course is amazing

  • @TheJohnniePlays
    @TheJohnniePlays 4 роки тому +2

    How can he access rock.enrollCourse("Angular Bootcamp"); ??? Isn't it supposed to be private?

    • @rahulanand141
      @rahulanand141 4 роки тому

      Yes it can access because methods of the class can access private members of the class

  • @upsideInvestments2024
    @upsideInvestments2024 4 роки тому

    Sir I have one question? What we need to do to make complete website Eg. If I have html ready css ready backhend part ready but how to connect all those and launch that ? Please do answer sir

  • @gokulc2546
    @gokulc2546 4 роки тому

    Hi bro....will you be covering how to include web elements such as TXT box and so on...?? Loving this ongoing series btw

  • @techiesrikanth2447
    @techiesrikanth2447 4 роки тому

    Thank You, Hitesh.

  • @Ravi-oh8xz
    @Ravi-oh8xz Рік тому

    Really enjoyed ❤️❤️

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

    can someone please tell me where can i find the codes written in the video as he said many times that he is making those files so that we can refer it afterwards?

  • @harshrastogi296
    @harshrastogi296 4 роки тому

    This playlist is awesome,

  • @vijayanpp186
    @vijayanpp186 3 роки тому

    Great quality 👍

  • @clipforyou-zw3bx
    @clipforyou-zw3bx 4 роки тому +1

    Is this also known as encapsulation?? pls let me know

  • @himanshugupta7647
    @himanshugupta7647 4 роки тому

    does we have to download java script for vs code

  • @jaydattr9765
    @jaydattr9765 2 роки тому

    not working on my machine, got arror "Invalid or unexpected token"

  • @harishs7384
    @harishs7384 3 роки тому

    thnaks brooooo

  • @hiteshupreti4250
    @hiteshupreti4250 3 роки тому

    # is not supported for private members ... i think it is after ES2019.

  • @samirkrishnach3691
    @samirkrishnach3691 4 роки тому +1

    Sir everything is super awesome but one thing is missing ASSIGNMENT. I love your courses please give us some Assignments sir

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

    thanks!!

  • @mohd.maasir8198
    @mohd.maasir8198 Рік тому

    thanks!

  • @sivasai6890
    @sivasai6890 4 роки тому

    Good morning sir ❤

  • @vraj3115
    @vraj3115 4 роки тому

    #10minutesJS day 52!

  • @soulofjack7294
    @soulofjack7294 3 роки тому

    this will not work in es6 i guess.

  • @ravipandey29
    @ravipandey29 4 роки тому

    Diff. Btw import and require

  • @Sunny-oc7bo
    @Sunny-oc7bo 4 роки тому

    :-)

  • @Sunny-oc7bo
    @Sunny-oc7bo 4 роки тому

    1 like 1 st comment 1 view