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 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
How to Handle API in javascript
16:29
Hitesh Choudhary
Рет қаралды 49 М.
Closure in javascript
10:49
Hitesh Choudhary
Рет қаралды 42 М.
Solution of Scope problem in javascript
8:13
Hitesh Choudhary
Рет қаралды 16 М.
Promise async and await in javascript
11:39
Hitesh Choudhary
Рет қаралды 105 М.
Classes and module exports in javascript
14:29
Hitesh Choudhary
Рет қаралды 39 М.
Better code with object chain in javascript
7:28
Hitesh Choudhary
Рет қаралды 25 М.
Confusing part of THIS in javascript
9:09
Hitesh Choudhary
Рет қаралды 44 М.
Scope chaining in javascript
9:29
Hitesh Choudhary
Рет қаралды 53 М.
For Each loop in javascript
7:40
Hitesh Choudhary
Рет қаралды 38 М.
Get Computed properties in javascript
12:27
Hitesh Choudhary
Рет қаралды 39 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН