Class constructor and static | chai aur
HTML-код
- Опубликовано: 11 сен 2024
- Visit chaicode.com for all related materials, community help, source code etc.
#javascript #hindi
Sara code yaha milta h
github.com/hit...
Discord pe yaha paaye jaate h:
hitesh.ai/discord
Instagram pe yaha paaye jaate h:
/ hiteshchoudharyofficial
world class content
world class teacher
world class channel
this channel deserve trillions of subscriber and views
bhai world population 8 Billion ha 🤣🤣
(Not disrespecting Sir in any manner)
"Chai aur Code, your tutorials are not just educational but also incredibly entertaining. Bravo!"
static createID() can be invoke by className like User.createId().static properties dont rely on object creation. without instantiation of object we can use static properties.
Taking this class after a long 12-13 hour shift (including traveling), and it's completely worth it. ❤
kya haal chaal hai bhai aapke ? kya aap job switch kar paye?
Chaliye Aaaj me mai apani dil ki bat Bata hi deta hu sir Maine is playlist ki sari video ko 2-3 bar dekha hai aur Bahut maja aaya ❤❤❤
Watching at 3 am , enjoying your teaching and js concepts❤
Keep it up
so ja vai
soh jaa pai
00:03 Exploring classes in JavaScript
01:44 Using the new keyword to create classes and constructors.
05:38 Creating and using class constructor and static methods in JavaScript
07:48 Creating methods and handling errors in JavaScript classes
11:54 Overriding the constructor and using 'super' keyword
13:41 Understanding the behind the scenes of class constructors
18:06 Tea made from the teacher and instance concept in JavaScript
19:47 Creating user name, methods, and properties.
23:49 Introduction to class constructor and static in JavaScript
25:47 Understanding class constructors and static in JavaScript
course dusre ka buy kiya hai or doubt yaha clear kr raha hu , ye aadmi aapko javscript se pyar kara denga
Sahi kaha apna bro ma khud concepts clear kr raha hu or aisa koi nai batata dosra hitesh sir ki awaz bohat achi h jo sunnay ma bhi achi lagti h
Same💀
Same here 😂😂
Main bhi Jitna acha mai paisa de kar nhi shika us se acha Ye sir Sikha kar pura Doubt clear ho gya 😊
Your brilliance in simplifying intricate concepts and the humor you infuse into lessons create an incredibly enjoyable and enlightening learning experience. Thank you for making each class uniquely engaging!
Thank you sir For this awesome videos, I can say Nobody has ever taught javaScript the way you have taught. You have made hardest of hardest to easy like it was nothing. I am preparing for my placement from here only. Pls Keep making videos like these on this channel also.
So nice of you ❤️🤗🙏
your way of teaching is just amazing... watched 40 videos of this playlist learning a lot.❤
There, I learned another concept, I created my own examples, and it was so clear in my head, mere andar bhi execution context chalne laga, itna clear samjhaya aapne, Best of the best teacher 🙏
Boht bhariyaaaa explanation.. challenge krta ho koi b nahi kr skta AISA explanation 👌👌
Hitesh bhaiya aaap ese hi informative video banate rahiye.
Pade ga INDIA tabhi bade ga india.
Because yaha shirf ek individual ki baat nahi hain.
Ek ek kar ke hi cain banta hain aur pura economy and infrastructure effect me aata hain.
Love you attitude and gratitude.🥰
LOL dreams se bahr niklo, yaha ki sari tech industry US market pe dependent hai, jisdin US doob gya samjho india ke sare techies bhi doob marenge. so called indian comoanies ko bhi projects US se hi milte hai
You said it right when you get to see the behind the scenes in your mind, things will get more interesting...!! Now things are getting more clear and clearer...!!
I have studied from udemy course by jonas schmedtmann . Ush level ka content hota aap ka.
Object name should be relevant to class name so that the freshers could understand in a clear way and build more understanding of concept.
Hitesh sir, Without your chai aur code voice no day go ahead. I truly appreciate this wonderful javascript series for helping hands to all and go ahead to grow in the tech world 🌎. Thank you soo much sir no words for description of chai aur code bcoz chai aur code already described N no. Of contents. Thank you sir. 🎉🎉🎉👏👏👏🏆💫🎇
maine aj 2 dosto ke sath share kiya, wo bhi jud gaye sir mere sath chai leke bade hi itminan se, mereko hogaya 1 month 31 days kaise gaye pata nahi chala code likhte likhte apke sath. Peheli bar maine khudse kuch js me end to end banaya, thanks to you sir
pure 50 video samaz mai aa gya, great content and explaination
itne ache se aajkat samajh nahi aya tha classes ka concept ..thank you Hitesh sir
Amazing Clarification Sir
LAST LINE IS OUTSTADING, sb agay niklain gy, sb taraqi krain gy.
Apki video me high level material hota ...
Har kuchh din bad dekhna padta hai
Yet another topic with simplified explanation. Thanks Hitesh sir
behtareen lecture
behtareen teacher
behtareen explanation
behtareen channel
behtareen batay
Most logical concept for people coming from OOPs language like Dart,kotlin or java
The thing is, we learn the knowledge when we jump into next level of it. OR we can say when we go for difficult we learn what we need. Thank YOU ♥
Sir yeah hobby top 1 % me hoti toh yah barkaraar rakhe we always support you respect button ✅ for hitesh choudhury sir
Aap dhanya hai HItesh ji. Muje aaj tak nahi pata tha ki constructor() and function() k thru object creation mein kya difference hai.
Never knew what super keyword is doing behind the scenes.
Love Hitesh Sir Voice.........
Super Keyword with Super Video (JS BEYOND PAID COURSES 😅)
Me channel ka bahut bada fan ho gya your teaching style osm after completing yahoo baba js playlists now i am here watched many videos❤
Best Teacher for JS
best Series ALL OVER THE UNIVERSE, thank you Sir 🙏
han ji meto sabko keheta hoon ki am learning from ACTIONABLE programmer Hitesh Sir😁😁😊😊
class Calculator {
// A static method
static add(a, b) {
return a + b;
}
}
// You can call the static method directly on the class
console.log(Calculator.add(5, 3)); // Output: 8
Static methods are often used to create utility functions or properties that are related to a class but don't need to be tied to an instance of that class.
This guy is the GOAT of this Industry Damnn!!
@chai aur code .Can you do one in-depth video on factory function vs constructor function & what is instance ? in depth video like what is diffrence < when to use which one something like that @chai aur code
He is the best teacher of js
Please note that the static keyword defines static methods for classes.
These static methods are called directly on the class without creating an instance/object of the class.
eg. User.createId() and Teacher.createId() will work.
is the place where many coders born 💖
Great teaching skills
Reaallly appericiate your effforts sir love your videos
great video : just one update super() should be called before anything else in the constructor, ❤❤
confidence aata he sir se coding sikh ke grest hitesh sir
1:17 Classes concept
9:55 Iheritance
19:05 static pro - static properties
Another crystal clear video, thank you sir
if possible please make interview focused playlist on JS, pls
Had to watch multiple times to grasp
Sir maine last Saturday ko socha tha mere friends ko aapke channel ke baare me suggest krunga but unfortunately they are Saying that development kr rahe ho to chai or code ek baar dekho and i was like me to vahi se padh raha hu❤❤
Thanks sir for this best content 🙏🙏🙏🙏🙏
i love the way how u start the intro ......Hanji🙂
Both Sir classes and ChatGPT 🔥🔥
Amazing Sir! Top Notch Content 😃
first time i have successfully understand use of super keyword
😊☕️
sir really good content love your videos.
//static property when we use a satic then we are not able to access that property of that method
//class1
class user1 {
constructor(username){
this.username=username;
}
print_username(){
console.log(`The username assigned by the system is ${this.username} `)
}
static generate_user_Id(){
console.log('9496')
}
}
//here the instances of the objects are made
const class1 = new user1('kim Dokja')
console.log(class1)
// class1.generate_user_Id()
class1.print_username()
// class2 here (extend) means that class1 basically inherits all the property of the class 1
class user2 extends user1{
constructor(username,roll_no){
super(username)
this.roll_no=roll_no
}
}
const class2= new user2("Luffy",10)
console.log(class2)
class2.print_username()
class2.generate_user_Id()
15:10 we need to use new keyword to create instance of a class
13:47 - now i know super key word
Awesome Series And Awesome Teacher ❤👑
sir ye static function jo class mein likhi hai wo normal function mein kaise likhenge ? like syntactic sugar hta de
I enjoyed this series rather than Netflix series
Dhamki was epic
Love you sir and thanks Allah for giving us this man❤
These series gives you wings.
course liya haen udemy se, continue idhar ho raha haen,,
Love from BANGLADESH
He is the first coding RUclipsr with no haters 😊
Sir, I am a fan of You. I have a question.Why we can not declare "function" with the keyword function inside a class?
class math{
/*constructor(a,b){
var a,b;
}*/
function sum(a,b) {
var c;
c=a+b;
return c;
}
function sub(a,b)
{
var c;
c=a+b;
return c;
}
}
var math1=new math();
var m=math1.sum(5,3);
console.log(m);
This get error.SyntaxError: Unexpected identifier
But while I remove the keyword function it's working...
Please explain sir...
no doubt JS series is booming the industries
NICE GURUJI
hello sir ... Thankyou for you content that is very useful to us..sir will you please teach node js and angular
thank you sir teaching in depth.
Sir you are the best teacher 🔥
Thank you so much sir 😊
great video , #javascript #developer
thankks ji
best js series
thankyou sir
you are awesome bro
keep continue please 😊😊
after using static how can we use that method, this is not clear please clear.
sir apke jaie content mene kahi pe nah dekh ❤❤❤❤❤❤❤❤❤❤❤❤
Thank You Sir ❤❤
10:00 inheritance
Dhanayavad Guru G🚩✌
Thanks A Lot Sir ❤❤
Wah sir ji ... Maja aa gaya ..... Ekach Number ....!!!
hamare collage me pura publish hai 1st year to final year tak sir 😍
Great explanation hitesh sir....
Kaha se aate he log 6k views par 400 likes oh God give them some mind please respect hard work of sir❤
i lost it when sir said itne acche error dene lagi he JS.... nahi nahi ye node de raha he Js to itne vahiyaat error deti he dhundhne me time nikal jata he 😂😂😂😂😂😂
love u sir jii
excited to learn more :)
Hello sir, just one suggestion, mene dekha aapko objects k nam dene thodi pareshani ho rhi to aap apne pass koi book open krke rkh skte hai so pick any word from it just for fun😅
sir mene prototype method arrow function ki madat se banayi to meko result ni mil rahe the then mene search kara to pata chala ki hum arrow function ki madat ke prototype method ni bana shakte he is that right or wrong.
great learning
9:40 this is good. 🤣🤣🤣
done ✅, awesome as well.
best teacher 🔥
JS under the hood pe aur videos chahiye sir please
Rukna mana hain sir ji😅
People binge watch Netflix , I binge watch "this".JavaScriptSeries