Best explanation sir... Please keep this series goes on.... doesn't matter how many people's watching this videos daily... For most like us....it is great helping from your lectures to understand js basics in good level. Thanks for your all efforts.🙂
static keyword block the access of the method for extend class as well as block for other variable which is created from main class so how we can solve this issue?
By calling the super() method in the constructor method of the child , we call the parent's constructor method and gets access to the parent's properties and methods:
Sir I have seen code on stackoverflow like constructor(props){ super(props) } What's the meaning of this code is it different from what we have learnt in this vedio
Actually we are not overwriting login() it is just that the instance that we create from subadmin class will first look inside its object then he goes down in the prototype chain which is nothing but the admin class here.
Hey hitesh, there needs some correction ... Does static really means private ..... because i am able to access (see below snippet) class User { ......... static login() { return "You are logged in"; } } class Admin extends User { ...} console.log(Admin.login()); I think static means you cannot access it with instance but you can access it directly by using class name. Let me know am i right here and what are your thoughts on this.
static keyword is used to when a variable or a method has to be used directly with the name of the class without instantiating the class. Due to which Admin class can call directly the login method from user class.
Your explanation is good. However, you can cut down on hifi jargon 'call it a day' seriously dude. You are very obviously an Indian, I won't dare say all, but many are going to be Indians watching your channel and videos. Uffff...
Full course is FREE and will be available here
courses.learncodeonline.in/learn/Complete-Javascript-course
Today's my birthday & it starts with your Js playlist video & end with your ReactJs course ❤️🔥
00:57 and with me everything is super easy(loved it)
Best explanation sir...
Please keep this series goes on.... doesn't matter how many people's watching this videos daily...
For most like us....it is great helping from your lectures to understand js basics in good level.
Thanks for your all efforts.🙂
Make a video of topic - difference between Promise and Await.
Bruh you should change your name into Hi-tech
Hitesh sir, why don't we make method PRIVATE so that it cannot be inherited instead of STATIC.
Sir MDN is having too much content should we have to know everything that is on website of MDN.??????????
static keyword block the access of the method for extend class as well as block for other variable which is created from main class so how we can solve this issue?
How to export the child class using require keyword in another file. please help!
Thank you ! This should not be free!!!
By calling the super() method in the constructor method of the child , we call the parent's constructor method and gets access to the parent's properties and methods:
Sir I have seen code on stackoverflow like
constructor(props){
super(props)
}
What's the meaning of this code is it different from what we have learnt in this vedio
we can call name and email without constructor @ 4:33, pls correct me if i'm wrong
yes
How??
@@egoiisticprince7977 how
exactly thats what i realised by mistake
Happy Teachers Day Hitesh Sir
Thanks buddy ..you are too good
Actually we are not overwriting login() it is just that the instance that we create from subadmin class will first look inside its object then he goes down in the prototype chain which is nothing but the admin class here.
how is polymorphism achieved in js ?
Explanation ❤️❤️
Hey hitesh, there needs some correction ... Does static really means private ..... because i am able to access (see below snippet)
class User {
.........
static login() {
return "You are logged in";
}
}
class Admin extends User { ...}
console.log(Admin.login());
I think static means you cannot access it with instance but you can access it directly by using class name.
Let me know am i right here and what are your thoughts on this.
static keyword is used to when a variable or a method has to be used directly with the name of the class without instantiating the class.
Due to which Admin class can call directly the login method from user class.
why you put # before courselist = [ ];
to make it private
nice content.
#10minutesJS day 53!
TYSm sir
i got the same output without using super keyword
i was so fast today :-)
Your explanation is good. However, you can cut down on hifi jargon 'call it a day' seriously dude. You are very obviously an Indian, I won't dare say all, but many are going to be Indians watching your channel and videos. Uffff...
Second one ❤
2nd viewer 😂😂