Class constructor and static | chai aur

Sdílet
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

Komentáře • 246

  • @tech_channel110
    @tech_channel110 Před rokem +47

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

  • @BitFire007
    @BitFire007 Před 6 měsíci +22

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

    • @documentarywork4025
      @documentarywork4025 Před 2 měsíci +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 Před 11 měsíci +31

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

    • @AbsolutePain
      @AbsolutePain Před 10 měsíci +2

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

  • @SarveshKumar-08
    @SarveshKumar-08 Před 9 měsíci +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

  • @mukeshkumarsingh6140
    @mukeshkumarsingh6140 Před 8 měsíci +2

    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 Před 11 měsíci +28

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

  • @webgrowagency
    @webgrowagency Před 10 měsíci +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 Před 7 měsíci +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 Před 2 měsíci +1

      Same💀

    • @photosofmine3443
      @photosofmine3443 Před měsícem +2

      Same here 😂😂

    • @dronchoudhary9512
      @dronchoudhary9512 Před 25 dny +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 Před 10 měsíci +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!

  • @aryanwolfox6390
    @aryanwolfox6390 Před 7 měsíci +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 Před měsícem

      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

  • @user-iv9mx7md8q
    @user-iv9mx7md8q Před 6 měsíci

    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

  • @abhishekkumargupta543
    @abhishekkumargupta543 Před 10 měsíci +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.

  • @iftakharahmad7119
    @iftakharahmad7119 Před 11 měsíci +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.

  • @saqibullah7286
    @saqibullah7286 Před rokem +1

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

  • @aryanwolfox6390
    @aryanwolfox6390 Před 7 měsíci +1

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

  • @ankitamaru9712
    @ankitamaru9712 Před 4 měsíci

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

  • @zrotrasukha8733
    @zrotrasukha8733 Před 5 měsíci

    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 🙏

  • @alwaysbesarcastic6167
    @alwaysbesarcastic6167 Před rokem +4

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

  • @FebinAugustine
    @FebinAugustine Před 5 měsíci

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

  • @saqibbalghari8190
    @saqibbalghari8190 Před 10 měsíci +1

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

  • @acxd
    @acxd Před 23 dny

    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.

  • @sshibam
    @sshibam Před 8 měsíci

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

  • @talhagamingyt7986
    @talhagamingyt7986 Před 2 měsíci

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

  • @m_sahoo12
    @m_sahoo12 Před dnem +1

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

  • @thecalgarians4597
    @thecalgarians4597 Před 4 měsíci +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.

  • @GamingWithParamYT
    @GamingWithParamYT Před 11 měsíci +2

    Amazing Clarification Sir

  • @muhammadahmedsiddiqui9382
    @muhammadahmedsiddiqui9382 Před 7 měsíci

    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 ♥

  • @tusharpandita167
    @tusharpandita167 Před 2 měsíci

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

  • @tech_channel110
    @tech_channel110 Před rokem +1

    behtareen lecture
    behtareen teacher
    behtareen explanation
    behtareen channel
    behtareen batay

  • @user-kw9yk6dr4m
    @user-kw9yk6dr4m Před 8 měsíci +1

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

  • @nehabansal370
    @nehabansal370 Před 6 měsíci

    Yet another topic with simplified explanation. Thanks Hitesh sir

  • @Hitesh.17
    @Hitesh.17 Před 8 měsíci +1

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

  • @_Cyog_
    @_Cyog_ Před 4 měsíci

    @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

  • @RaviYadav_Dev
    @RaviYadav_Dev Před 7 měsíci

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

  • @TheStoicPlayer64
    @TheStoicPlayer64 Před 5 měsíci

    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.

  • @Rajveer__singhhhh
    @Rajveer__singhhhh Před 11 měsíci

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

  • @user-mo1sy5ck7r
    @user-mo1sy5ck7r Před 6 měsíci

    best Series ALL OVER THE UNIVERSE, thank you Sir 🙏

  • @Rajveer__singhhhh
    @Rajveer__singhhhh Před 11 měsíci

    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❤

  • @user-cj6kg6ps5f
    @user-cj6kg6ps5f Před 8 měsíci

    first time i have successfully understand use of super keyword

  • @ratishjain2718
    @ratishjain2718 Před 11 měsíci

    This guy is the GOAT of this Industry Damnn!!

  • @amit16_01
    @amit16_01 Před 4 měsíci

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

  • @AbheyKhurana-tc6be
    @AbheyKhurana-tc6be Před 4 měsíci

    Best Teacher for JS

  • @KruelGodGaming
    @KruelGodGaming Před 5 měsíci

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

  • @len5755
    @len5755 Před 10 měsíci

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

  • @Prernachaturvedi8720
    @Prernachaturvedi8720 Před 2 měsíci

    He is the best teacher of js

  • @cloudwebexpert8169
    @cloudwebexpert8169 Před 29 dny

    Great teaching skills

  • @shraddhasumandash5465
    @shraddhasumandash5465 Před 3 měsíci

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

  • @user-xv9mw1qf8d
    @user-xv9mw1qf8d Před 6 měsíci

    is the place where many coders born 💖

  • @MohammedHasmi577
    @MohammedHasmi577 Před 5 měsíci

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

  • @user-gq7ff4nt5c
    @user-gq7ff4nt5c Před 5 měsíci

    Had to watch multiple times to grasp

  • @manishasaini307
    @manishasaini307 Před 7 měsíci +1

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

  • @arjunsharma4449
    @arjunsharma4449 Před 10 měsíci

    Both Sir classes and ChatGPT 🔥🔥

  • @asem_rashed
    @asem_rashed Před 6 měsíci

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

  • @sauravbrathwal5496
    @sauravbrathwal5496 Před 9 měsíci

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

  • @anshulkumar4660
    @anshulkumar4660 Před 2 měsíci

    Thanks sir for this best content 🙏🙏🙏🙏🙏

  • @prathameshtirlotkar505
    @prathameshtirlotkar505 Před 6 měsíci

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

  • @GamingWithParamYT
    @GamingWithParamYT Před 11 měsíci

    Amazing Sir! Top Notch Content 😃

  • @premveersingh2647
    @premveersingh2647 Před 4 měsíci

    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

  • @gostgamming7126
    @gostgamming7126 Před 7 měsíci

    He is the first coding CZcamsr with no haters 😊

  • @blackmamba3984
    @blackmamba3984 Před 8 měsíci +1

    confidence aata he sir se coding sikh ke grest hitesh sir

  • @alibaqar7846
    @alibaqar7846 Před 5 měsíci

    Dhamki was epic

  • @levisplay6581
    @levisplay6581 Před 8 měsíci

    Reaallly appericiate your effforts sir love your videos

  • @princeguptaaaa
    @princeguptaaaa Před 5 měsíci

    sir really good content love your videos.

  • @armanjavid2610
    @armanjavid2610 Před 11 měsíci

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

  • @Dev-Phantom
    @Dev-Phantom Před 5 měsíci +1

    13:47 - now i know super key word

  • @jagdambadubey6956
    @jagdambadubey6956 Před 3 měsíci +1

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

  • @rendevous9253
    @rendevous9253 Před 9 měsíci

    These series gives you wings.

  • @anandstephan6020
    @anandstephan6020 Před rokem +9

    I enjoyed this series rather than Netflix series

  • @aggsha7580
    @aggsha7580 Před 9 dny

    Thanks A Lot Sir ❤❤

  • @BOSS55
    @BOSS55 Před 8 měsíci

    thankks ji

  • @GAMERDHRUVSHORTS
    @GAMERDHRUVSHORTS Před 4 měsíci

    NICE GURUJI

  • @user-qk2zq6mg4k
    @user-qk2zq6mg4k Před 8 měsíci

    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 Před 5 měsíci

    no doubt JS series is booming the industries

  • @dhumdeogobare1891
    @dhumdeogobare1891 Před rokem

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

  • @iambishwaa
    @iambishwaa Před 2 měsíci

    done ✅, awesome as well.

  • @MohsinKhan-wv3ep
    @MohsinKhan-wv3ep Před 9 měsíci

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

  • @Rajveer__singhhhh
    @Rajveer__singhhhh Před 11 měsíci

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

  • @yashvantsinhchavda3711
    @yashvantsinhchavda3711 Před 3 měsíci

    great video , #javascript #developer

  • @nikhatansari3310
    @nikhatansari3310 Před 10 měsíci +1

    Thank you so much sir 😊

  • @user-ts1cs9yz8m
    @user-ts1cs9yz8m Před 7 měsíci

    thank you sir teaching in depth.

  • @jrahul42
    @jrahul42 Před 29 dny

    great learning

  • @Chirag12390
    @Chirag12390 Před měsícem

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

  • @rohankarale78
    @rohankarale78 Před 10 měsíci

    Awesome Series And Awesome Teacher ❤👑

  • @iamakashkumarram
    @iamakashkumarram Před rokem +4

    Sir you are the best teacher 🔥

  • @Vishalkumar-qh8kg
    @Vishalkumar-qh8kg Před 6 měsíci

    Factory function vs constructor function in js..sir

  • @user-zk4og6sy1d
    @user-zk4og6sy1d Před 7 měsíci

    keep continue please 😊😊

  • @relaxation_music-7ym
    @relaxation_music-7ym Před 6 měsíci

    Thank You Sir ❤❤

  • @priyankagehlot9945
    @priyankagehlot9945 Před 2 měsíci

    Thankyou Sir😊

  • @vcaptur
    @vcaptur Před 9 měsíci

    JS under the hood pe aur videos chahiye sir please

  • @aamis_code
    @aamis_code Před 6 měsíci

    best js series
    thankyou sir

  • @rwtNitin
    @rwtNitin Před rokem +1

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

  • @oqant0424
    @oqant0424 Před 6 měsíci

    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💓

  • @arshitcc
    @arshitcc Před 4 měsíci

    Thank You Sir

  • @adityapandey2418
    @adityapandey2418 Před rokem

    Great explanation hitesh sir....

  • @CorporateMajduri
    @CorporateMajduri Před 2 měsíci

    10:00 inheritance

  • @dsouzaedson
    @dsouzaedson Před 9 měsíci

    excited to learn more :)

  • @muhammadadil-or3kb
    @muhammadadil-or3kb Před 5 měsíci

    you are awesome bro

  • @kumar_sanjeevdutta1069
    @kumar_sanjeevdutta1069 Před 6 měsíci

    Sir, I want to subscribe your channel TWO times 😉😉😉

  • @pratikrajput2066
    @pratikrajput2066 Před rokem

    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😅

  • @GautamKumar-yw7dd
    @GautamKumar-yw7dd Před 11 měsíci

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

  • @dingo_5998
    @dingo_5998 Před 10 měsíci

    Dhanayavad Guru G🚩✌