Private props getters and setters in javascript

  Рет қаралды 18,563

Hitesh Choudhary

Hitesh Choudhary

Күн бұрын

Пікірлер: 40
@HiteshCodeLab
@HiteshCodeLab 4 жыл бұрын
Full course is FREE and will be available here courses.learncodeonline.in/learn/Complete-Javascript-course
@Sunny-oc7bo
@Sunny-oc7bo 4 жыл бұрын
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
@tanishqmanuja
@tanishqmanuja 4 жыл бұрын
Why it isn't console.log(rock.#courseList) ?
@souvikmukherjee9074
@souvikmukherjee9074 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.
@Moonwalkerrabhi
@Moonwalkerrabhi 3 жыл бұрын
Amazing content ! I started learning javscript in March from this playlist, and am gonna complete it in few days. great content
@tusharmehta3411
@tusharmehta3411 4 жыл бұрын
Salute to your dedication sir!
@tyagiharsh607
@tyagiharsh607 4 жыл бұрын
I'm loving this more than any other thing.
@alltech-jg9hi
@alltech-jg9hi 4 жыл бұрын
Great, Awesome series, super thumbs up Mr Hitesh
@bvadirajatantry61
@bvadirajatantry61 4 жыл бұрын
Seeing no dislikes in this video made me happy, Because this course is amazing
@devanshsadhotra9649
@devanshsadhotra9649 4 жыл бұрын
and books me itna lambaaaaaa likha hota hai , aur aapne itne araam se sikha dia
@TheJohnniePlays
@TheJohnniePlays 4 жыл бұрын
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
@SamruddhaShah
@SamruddhaShah 4 жыл бұрын
hitesh is amazing teacher
@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?
@jaydattr9765
@jaydattr9765 2 жыл бұрын
not working on my machine, got arror "Invalid or unexpected token"
@clipforyou-zw3bx
@clipforyou-zw3bx 4 жыл бұрын
Is this also known as encapsulation?? pls let me know
@Ravi-oh8xz
@Ravi-oh8xz 2 жыл бұрын
Really enjoyed ❤️❤️
@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
@himanshugupta7647
@himanshugupta7647 4 жыл бұрын
does we have to download java script for vs code
@hiteshupreti4250
@hiteshupreti4250 3 жыл бұрын
# is not supported for private members ... i think it is after ES2019.
@techiesrikanth2447
@techiesrikanth2447 4 жыл бұрын
Thank You, Hitesh.
@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
@vijayanpp186
@vijayanpp186 4 жыл бұрын
Great quality 👍
@harshrastogi296
@harshrastogi296 4 жыл бұрын
This playlist is awesome,
@soulofjack7294
@soulofjack7294 4 жыл бұрын
this will not work in es6 i guess.
@harishs7384
@harishs7384 3 жыл бұрын
thnaks brooooo
@sivasai6890
@sivasai6890 4 жыл бұрын
Good morning sir ❤
@mohd.maasir8198
@mohd.maasir8198 Жыл бұрын
thanks!
@mowabro227
@mowabro227 Жыл бұрын
thanks!!
@samirkrishnach3691
@samirkrishnach3691 4 жыл бұрын
Sir everything is super awesome but one thing is missing ASSIGNMENT. I love your courses please give us some Assignments sir
@ravipandey29
@ravipandey29 4 жыл бұрын
Diff. Btw import and require
@vraj3115
@vraj3115 4 жыл бұрын
#10minutesJS day 52!
@Sunny-oc7bo
@Sunny-oc7bo 4 жыл бұрын
:-)
@Sunny-oc7bo
@Sunny-oc7bo 4 жыл бұрын
1 like 1 st comment 1 view
Inheritance in javascript
9:22
Hitesh Choudhary
Рет қаралды 26 М.
Borrow a method using bind
14:46
Hitesh Choudhary
Рет қаралды 23 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Spread and REST operators in Javascript
14:00
Hitesh Choudhary
Рет қаралды 56 М.
Classes and module exports in javascript
14:29
Hitesh Choudhary
Рет қаралды 39 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
Laravel Crash Course | zero to deployment
1:20:38
Hitesh Choudhary
Рет қаралды 21 М.
Promise async and await in javascript
11:39
Hitesh Choudhary
Рет қаралды 105 М.
React 19 updates explained in 5 minutes
5:30
Vanyo Ivanov
Рет қаралды 101
Destructure the data in javascript
7:19
Hitesh Choudhary
Рет қаралды 20 М.
Closure in javascript
10:49
Hitesh Choudhary
Рет қаралды 42 М.
JS Fetch in 3 Minutes
3:30
CodeNexus
Рет қаралды 354
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН