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

Комментарии • 249

  • @tech_channel110
    @tech_channel110 Год назад +48

    world class content
    world class teacher
    world class channel
    this channel deserve trillions of subscriber and views

    • @ahmadrasheed2598
      @ahmadrasheed2598 4 дня назад +1

      bhai world population 8 Billion ha 🤣🤣
      (Not disrespecting Sir in any manner)

  • @BitFire007
    @BitFire007 6 месяцев назад +24

    "Chai aur Code, your tutorials are not just educational but also incredibly entertaining. Bravo!"

    • @documentarywork4025
      @documentarywork4025 2 месяца назад +1

      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.

  • @deepakmishra96
    @deepakmishra96 11 месяцев назад +33

    Taking this class after a long 12-13 hour shift (including traveling), and it's completely worth it. ❤

    • @AbsolutePain
      @AbsolutePain 10 месяцев назад +2

      kya haal chaal hai bhai aapke ? kya aap job switch kar paye?

  • @mukeshkumarsingh6140
    @mukeshkumarsingh6140 8 месяцев назад +3

    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 ❤❤❤

  • @arpit_ranakoti
    @arpit_ranakoti 11 месяцев назад +28

    Watching at 3 am , enjoying your teaching and js concepts❤

  • @SarveshKumar-08
    @SarveshKumar-08 9 месяцев назад +12

    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

  • @webgrowagency
    @webgrowagency 11 месяцев назад +66

    course dusre ka buy kiya hai or doubt yaha clear kr raha hu , ye aadmi aapko javscript se pyar kara denga

    • @mohid_shahid
      @mohid_shahid 7 месяцев назад +5

      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

    • @tahashah651
      @tahashah651 2 месяца назад +1

      Same💀

    • @photosofmine3443
      @photosofmine3443 Месяц назад +2

      Same here 😂😂

    • @dronchoudhary9512
      @dronchoudhary9512 Месяц назад +1

      Main bhi Jitna acha mai paisa de kar nhi shika us se acha Ye sir Sikha kar pura Doubt clear ho gya 😊

  • @MelodyMaster914
    @MelodyMaster914 10 месяцев назад +3

    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!

  • @abhishekkumargupta543
    @abhishekkumargupta543 10 месяцев назад +4

    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.

    • @chaiaurcode
      @chaiaurcode  10 месяцев назад +3

      So nice of you ❤️🤗🙏

  • @saqibbalghari8190
    @saqibbalghari8190 10 месяцев назад +1

    your way of teaching is just amazing... watched 40 videos of this playlist learning a lot.❤

  • @zrotrasukha8733
    @zrotrasukha8733 5 месяцев назад

    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 🙏

  • @saqibullah7286
    @saqibullah7286 Год назад +1

    Boht bhariyaaaa explanation.. challenge krta ho koi b nahi kr skta AISA explanation 👌👌

  • @aryanwolfox6390
    @aryanwolfox6390 7 месяцев назад +1

    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.🥰

    • @thatsampguy
      @thatsampguy Месяц назад

      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

  • @FebinAugustine
    @FebinAugustine 5 месяцев назад

    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...!!

  • @aryanwolfox6390
    @aryanwolfox6390 7 месяцев назад +1

    I have studied from udemy course by jonas schmedtmann . Ush level ka content hota aap ka.

  • @iftakharahmad7119
    @iftakharahmad7119 11 месяцев назад +3

    Object name should be relevant to class name so that the freshers could understand in a clear way and build more understanding of concept.

  • @ankitamaru9712
    @ankitamaru9712 4 месяца назад

    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. 🎉🎉🎉👏👏👏🏆💫🎇

  • @user-iv9mx7md8q
    @user-iv9mx7md8q 6 месяцев назад

    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

  • @alwaysbesarcastic6167
    @alwaysbesarcastic6167 Год назад +4

    pure 50 video samaz mai aa gya, great content and explaination

  • @sshibam
    @sshibam 8 месяцев назад

    itne ache se aajkat samajh nahi aya tha classes ka concept ..thank you Hitesh sir

  • @GamingWithParamYT
    @GamingWithParamYT 11 месяцев назад +2

    Amazing Clarification Sir

  • @talhagamingyt7986
    @talhagamingyt7986 2 месяца назад

    LAST LINE IS OUTSTADING, sb agay niklain gy, sb taraqi krain gy.

  • @user-kw9yk6dr4m
    @user-kw9yk6dr4m 8 месяцев назад +1

    Apki video me high level material hota ...
    Har kuchh din bad dekhna padta hai

  • @nehabansal370
    @nehabansal370 6 месяцев назад

    Yet another topic with simplified explanation. Thanks Hitesh sir

  • @tech_channel110
    @tech_channel110 Год назад +1

    behtareen lecture
    behtareen teacher
    behtareen explanation
    behtareen channel
    behtareen batay

  • @RaviYadav_Dev
    @RaviYadav_Dev 7 месяцев назад

    Most logical concept for people coming from OOPs language like Dart,kotlin or java

  • @muhammadahmedsiddiqui9382
    @muhammadahmedsiddiqui9382 8 месяцев назад

    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 ♥

  • @Rajveer__singhhhh
    @Rajveer__singhhhh 11 месяцев назад

    Sir yeah hobby top 1 % me hoti toh yah barkaraar rakhe we always support you respect button ✅ for hitesh choudhury sir

  • @thecalgarians4597
    @thecalgarians4597 4 месяца назад +1

    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.

  • @amit16_01
    @amit16_01 4 месяца назад

    Love Hitesh Sir Voice.........

  • @Hitesh.17
    @Hitesh.17 8 месяцев назад +1

    Super Keyword with Super Video (JS BEYOND PAID COURSES 😅)

  • @Rajveer__singhhhh
    @Rajveer__singhhhh 11 месяцев назад

    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❤

  • @AbheyKhurana-tc6be
    @AbheyKhurana-tc6be 4 месяца назад

    Best Teacher for JS

  • @user-mo1sy5ck7r
    @user-mo1sy5ck7r 6 месяцев назад

    best Series ALL OVER THE UNIVERSE, thank you Sir 🙏

  • @m_sahoo12
    @m_sahoo12 6 дней назад +1

    han ji meto sabko keheta hoon ki am learning from ACTIONABLE programmer Hitesh Sir😁😁😊😊

  • @acxd
    @acxd 28 дней назад

    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.

  • @ratishjain2718
    @ratishjain2718 11 месяцев назад

    This guy is the GOAT of this Industry Damnn!!

  • @_Cyog_
    @_Cyog_ 4 месяца назад

    @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

  • @Prernachaturvedi8720
    @Prernachaturvedi8720 2 месяца назад

    He is the best teacher of js

  • @TheStoicPlayer64
    @TheStoicPlayer64 5 месяцев назад

    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.

  • @user-xv9mw1qf8d
    @user-xv9mw1qf8d 6 месяцев назад

    is the place where many coders born 💖

  • @cloudwebexpert8169
    @cloudwebexpert8169 Месяц назад

    Great teaching skills

  • @levisplay6581
    @levisplay6581 8 месяцев назад

    Reaallly appericiate your effforts sir love your videos

  • @KruelGodGaming
    @KruelGodGaming 6 месяцев назад

    great video : just one update super() should be called before anything else in the constructor, ❤❤

  • @blackmamba3984
    @blackmamba3984 9 месяцев назад +1

    confidence aata he sir se coding sikh ke grest hitesh sir

  • @sauravbrathwal5496
    @sauravbrathwal5496 9 месяцев назад

    1:17 Classes concept
    9:55 Iheritance
    19:05 static pro - static properties

  • @len5755
    @len5755 10 месяцев назад

    Another crystal clear video, thank you sir
    if possible please make interview focused playlist on JS, pls

  • @user-gq7ff4nt5c
    @user-gq7ff4nt5c 5 месяцев назад

    Had to watch multiple times to grasp

  • @MohammedHasmi577
    @MohammedHasmi577 5 месяцев назад

    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❤❤

  • @anshulkumar4660
    @anshulkumar4660 2 месяца назад

    Thanks sir for this best content 🙏🙏🙏🙏🙏

  • @armanjavid2610
    @armanjavid2610 11 месяцев назад

    i love the way how u start the intro ......Hanji🙂

  • @arjunsharma4449
    @arjunsharma4449 10 месяцев назад

    Both Sir classes and ChatGPT 🔥🔥

  • @GamingWithParamYT
    @GamingWithParamYT 11 месяцев назад

    Amazing Sir! Top Notch Content 😃

  • @user-cj6kg6ps5f
    @user-cj6kg6ps5f 8 месяцев назад

    first time i have successfully understand use of super keyword

  • @princeguptaaaa
    @princeguptaaaa 5 месяцев назад

    sir really good content love your videos.

  • @tusharpandita167
    @tusharpandita167 3 месяца назад

    //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()

  • @prathameshtirlotkar505
    @prathameshtirlotkar505 6 месяцев назад

    15:10 we need to use new keyword to create instance of a class

  • @Dev-Phantom
    @Dev-Phantom 5 месяцев назад +1

    13:47 - now i know super key word

  • @rohankarale78
    @rohankarale78 10 месяцев назад

    Awesome Series And Awesome Teacher ❤👑

  • @manishasaini307
    @manishasaini307 7 месяцев назад +1

    sir ye static function jo class mein likhi hai wo normal function mein kaise likhenge ? like syntactic sugar hta de

  • @anandstephan6020
    @anandstephan6020 Год назад +9

    I enjoyed this series rather than Netflix series

  • @alibaqar7846
    @alibaqar7846 5 месяцев назад

    Dhamki was epic

  • @MohsinKhan-wv3ep
    @MohsinKhan-wv3ep 9 месяцев назад

    Love you sir and thanks Allah for giving us this man❤

  • @rendevous9253
    @rendevous9253 9 месяцев назад

    These series gives you wings.

  • @asem_rashed
    @asem_rashed 7 месяцев назад

    course liya haen udemy se, continue idhar ho raha haen,,
    Love from BANGLADESH

  • @gostgamming7126
    @gostgamming7126 7 месяцев назад

    He is the first coding RUclipsr with no haters 😊

  • @user-qk2zq6mg4k
    @user-qk2zq6mg4k 9 месяцев назад

    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...

  • @anuraggupta1008
    @anuraggupta1008 6 месяцев назад

    no doubt JS series is booming the industries

  • @GAMERDHRUVSHORTS
    @GAMERDHRUVSHORTS 5 месяцев назад

    NICE GURUJI

  • @shraddhasumandash5465
    @shraddhasumandash5465 4 месяца назад

    hello sir ... Thankyou for you content that is very useful to us..sir will you please teach node js and angular

  • @user-ts1cs9yz8m
    @user-ts1cs9yz8m 8 месяцев назад

    thank you sir teaching in depth.

  • @iamakashkumarram
    @iamakashkumarram Год назад +4

    Sir you are the best teacher 🔥

  • @nikhatansari3310
    @nikhatansari3310 10 месяцев назад +1

    Thank you so much sir 😊

  • @yashvantsinhchavda3711
    @yashvantsinhchavda3711 3 месяца назад

    great video , #javascript #developer

  • @BOSS55
    @BOSS55 8 месяцев назад

    thankks ji

  • @aamis_code
    @aamis_code 6 месяцев назад

    best js series
    thankyou sir

  • @muhammadadil-or3kb
    @muhammadadil-or3kb 6 месяцев назад

    you are awesome bro

  • @user-zk4og6sy1d
    @user-zk4og6sy1d 8 месяцев назад

    keep continue please 😊😊

  • @jagdambadubey6956
    @jagdambadubey6956 3 месяца назад +1

    after using static how can we use that method, this is not clear please clear.

  • @CodingLover438
    @CodingLover438 Год назад

    sir apke jaie content mene kahi pe nah dekh ❤❤❤❤❤❤❤❤❤❤❤❤

  • @relaxation_music-7ym
    @relaxation_music-7ym 6 месяцев назад

    Thank You Sir ❤❤

  • @CorporateMajduri
    @CorporateMajduri 2 месяца назад

    10:00 inheritance

  • @dingo_5998
    @dingo_5998 10 месяцев назад

    Dhanayavad Guru G🚩✌

  • @aggsha7580
    @aggsha7580 14 дней назад

    Thanks A Lot Sir ❤❤

  • @dhumdeogobare1891
    @dhumdeogobare1891 Год назад

    Wah sir ji ... Maja aa gaya ..... Ekach Number ....!!!

  • @GautamKumar-yw7dd
    @GautamKumar-yw7dd 11 месяцев назад

    hamare collage me pura publish hai 1st year to final year tak sir 😍

  • @adityapandey2418
    @adityapandey2418 Год назад

    Great explanation hitesh sir....

  • @Rajveer__singhhhh
    @Rajveer__singhhhh 11 месяцев назад

    Kaha se aate he log 6k views par 400 likes oh God give them some mind please respect hard work of sir❤

  • @KruelGodGaming
    @KruelGodGaming 6 месяцев назад

    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 😂😂😂😂😂😂

  • @yugalyadav7535
    @yugalyadav7535 Год назад +1

    love u sir jii

  • @dsouzaedson
    @dsouzaedson 9 месяцев назад

    excited to learn more :)

  • @pratikrajput2066
    @pratikrajput2066 Год назад

    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😅

  • @TheStickmanShow805
    @TheStickmanShow805 7 месяцев назад +1

    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.

  • @jrahul42
    @jrahul42 Месяц назад

    great learning

  • @himadriroy7980
    @himadriroy7980 Год назад

    9:40 this is good. 🤣🤣🤣

  • @iambishwaa
    @iambishwaa 2 месяца назад

    done ✅, awesome as well.

  • @user-fh1iu8io4n
    @user-fh1iu8io4n Год назад

    best teacher 🔥

  • @vcaptur
    @vcaptur 9 месяцев назад

    JS under the hood pe aur videos chahiye sir please

  • @pappudutta2620
    @pappudutta2620 Год назад

    Rukna mana hain sir ji😅

  • @rwtNitin
    @rwtNitin Год назад +1

    People binge watch Netflix , I binge watch "this".JavaScriptSeries