Class constructor and static | chai aur
Vložit
- čas přidán 7. 09. 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
"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?
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
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
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!
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
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
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 ❤️🤗🙏
Object name should be relevant to class name so that the freshers could understand in a clear way and build more understanding of concept.
Boht bhariyaaaa explanation.. challenge krta ho koi b nahi kr skta AISA explanation 👌👌
I have studied from udemy course by jonas schmedtmann . Ush level ka content hota aap ka.
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. 🎉🎉🎉👏👏👏🏆💫🎇
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 🙏
pure 50 video samaz mai aa gya, great content and explaination
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...!!
your way of teaching is just amazing... watched 40 videos of this playlist learning a lot.❤
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.
itne ache se aajkat samajh nahi aya tha classes ka concept ..thank you Hitesh sir
LAST LINE IS OUTSTADING, sb agay niklain gy, sb taraqi krain gy.
han ji meto sabko keheta hoon ki am learning from ACTIONABLE programmer Hitesh 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.
Amazing Clarification Sir
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 ♥
//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()
behtareen lecture
behtareen teacher
behtareen explanation
behtareen channel
behtareen batay
Apki video me high level material hota ...
Har kuchh din bad dekhna padta hai
Yet another topic with simplified explanation. Thanks Hitesh sir
Super Keyword with Super Video (JS BEYOND PAID COURSES 😅)
@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
Most logical concept for people coming from OOPs language like Dart,kotlin or java
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.
Sir yeah hobby top 1 % me hoti toh yah barkaraar rakhe we always support you respect button ✅ for hitesh choudhury sir
best Series ALL OVER THE UNIVERSE, thank you Sir 🙏
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❤
first time i have successfully understand use of super keyword
😊☕️
This guy is the GOAT of this Industry Damnn!!
Love Hitesh Sir Voice.........
Best Teacher for JS
great video : just one update super() should be called before anything else in the constructor, ❤❤
Another crystal clear video, thank you sir
if possible please make interview focused playlist on JS, pls
He is the best teacher of js
Great teaching skills
hello sir ... Thankyou for you content that is very useful to us..sir will you please teach node js and angular
is the place where many coders born 💖
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❤❤
Had to watch multiple times to grasp
sir ye static function jo class mein likhi hai wo normal function mein kaise likhenge ? like syntactic sugar hta de
Both Sir classes and ChatGPT 🔥🔥
course liya haen udemy se, continue idhar ho raha haen,,
Love from BANGLADESH
1:17 Classes concept
9:55 Iheritance
19:05 static pro - static properties
Thanks sir for this best content 🙏🙏🙏🙏🙏
15:10 we need to use new keyword to create instance of a class
Amazing Sir! Top Notch Content 😃
Object.prototype.encryptPassword = function () {
return `${this.password}abc`
}
we also do like this , but in this method we provide access of encryptPassword method to all the objects in the file
He is the first coding CZcamsr with no haters 😊
confidence aata he sir se coding sikh ke grest hitesh sir
Dhamki was epic
Reaallly appericiate your effforts sir love your videos
sir really good content love your videos.
i love the way how u start the intro ......Hanji🙂
13:47 - now i know super key word
after using static how can we use that method, this is not clear please clear.
These series gives you wings.
I enjoyed this series rather than Netflix series
Thanks A Lot Sir ❤❤
thankks ji
NICE GURUJI
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
Wah sir ji ... Maja aa gaya ..... Ekach Number ....!!!
done ✅, awesome as well.
Love you sir and thanks Allah for giving us this man❤
Kaha se aate he log 6k views par 400 likes oh God give them some mind please respect hard work of sir❤
great video , #javascript #developer
Thank you so much sir 😊
thank you sir teaching in depth.
great learning
Are sir aaj to you tube open krte hi apki video ayi bhle hi mene Puri playlist sikhli
Revise hogya sir ek bar phir se 😊😊😊😊😊
Awesome Series And Awesome Teacher ❤👑
Sir you are the best teacher 🔥
Factory function vs constructor function in js..sir
keep continue please 😊😊
Thank You Sir ❤❤
Thankyou Sir😊
JS under the hood pe aur videos chahiye sir please
best js series
thankyou sir
People binge watch Netflix , I binge watch "this".JavaScriptSeries
I had bought a paid course worth 6k ..........but I learnt nothing there 😪
I started this series ..........and now I can confidently say that you have made me fallen in love with Js💓
Thank You Sir
Great explanation hitesh sir....
10:00 inheritance
excited to learn more :)
you are awesome bro
Sir, I want to subscribe your channel TWO times 😉😉😉
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😅
hamare collage me pura publish hai 1st year to final year tak sir 😍
Dhanayavad Guru G🚩✌