Let, const and var ki kahani | chai aur

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025
  • Visit chaicode.com for all related materials, community help, source code etc.
    Is video me hum dekhenge var, let and const ki kahani.
    Why we don't use var anymore, aur kya h kahani uske piche ki ?
    github.com/hit...

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

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

    "Kudos to Chai aur Code for simplifying complex JS concepts. The clarity is unmatched!"

  • @syedrizwan2203
    @syedrizwan2203 Год назад +14

    Teaching is not everyone's cup of tea. hats off to you Sir.

  • @Kuch_Bhi-lets_explore_it
    @Kuch_Bhi-lets_explore_it 2 года назад +76

    I watched when it is premiering , I know the basics , but the way you teach I watched all over again , Nicely taught Thank you so much 🙌

  • @elyramzan
    @elyramzan Год назад +166

    Lecture # 1:
    Variables and Data Types
    const = can't be re-assigned a value and can't be declared again (block scope)
    let = can be re-assigned a value but can't be declared again (block scope)
    var = it can be re-assigned a value and it can also be declared again (Global scope)
    => Never use var in your code instead of let because of block and functional scope issues.
    # console.table([group of variables you want to show in tabular form])

    • @rajsathey5154
      @rajsathey5154 11 месяцев назад +5

      Thanks bro for notes

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

      thanks

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

      Bhai isi tarah har video me likh dena kafi helpful rhega

    • @Yash-y6i7k
      @Yash-y6i7k 2 месяца назад

      thanks mate

  • @SandeepDhama
    @SandeepDhama Год назад +6

    Maine VBA aur Apps Script mein bahut saare projects kiye hain. VBA mein to Simple CRM Systems tak build kiye hain. Main ek full stack developer banna chahta hoon kyunki mujhe apna kuch build karna hai. Jab koi bhi aisi jankari milti hai jo mujhe nahi pata thi bahut khushi hoti hai ki chalo ye concept to clear hua. Aapki video mein aapka experience dikhayi deta hai Sir. Kyunki kuch cheeze documentation se nahi experience se hi samajh aati hain.

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

    Me avi tak bahut sara js ka youtube videos dekh chuka hu. but ys videos dekhne ne ke baad mujhe lag raha ha me kuch build kr paunga or ya videos itna intresting ha koi vi sikhne aayga to bina khatam kia ja he nhi sakta 100% Guarantee se bol skta hu. Thank You Hitesh sir 🙏🙏

  • @hackpiece3094
    @hackpiece3094 Год назад +3

    Hitesh please don't mind but there are a lot of people who start coding for the sake of coding...They don't understand enough so they get disheartened and just do their job and leave. When I was starting, I was very dumb. My first language was Java. I felt out of place but then slowly, I started to invest my time into learning the language...and so during my class 6 post exam holiday, I sat with my class 5 and class 6 books. Read every line , typed stuff on my old computer and slowly within 1 year, I got the hang of Programming. From that day, I have loved learning languages. So You can inspire by your teaching even to someone who just wants to code. We all need a good mentor else after feeling dumb for years, we just give up. So welcome everybody to your terrific teaching sessions ❣ We all need a mentor like you

  • @AritVyas
    @AritVyas Год назад +2

    Although being an FSD, I have no understanding of consoles.table. I acknowledge you as my Guru 🙏🙏

  • @akashthoriya
    @akashthoriya Год назад +6

    var, let, and const are all ways to declare variables in JavaScript, but they differ in scope, hoisting behavior, and mutability.
    var: It's function-scoped and hoisted, meaning it can be accessed before declaration within its function. Variables declared with var can be re-declared and re-assigned. It's now generally replaced by let and const in modern JavaScript due to its less predictable behavior.
    let: Introduced in ES6, let provides block-scoping, which confines it to the block (like loops or if-statements) where it's declared. It's not accessible before its declaration due to the Temporal Dead Zone. let allows re-assignment but not re-declaration in the same scope.
    const: Also block-scoped and subject to the Temporal Dead Zone. It must be initialized upon declaration and cannot be re-assigned or re-declared. It's ideal for declaring constants whose values should remain unchanged throughout the execution.
    In summary, prefer let and const for their block-level scoping, which enhances code readability and maintainability.
    Use let for variables that change and const for variables that should remain constant.

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

    Diamond always hidden in Coal ❤...
    Best Tutor Ever ..
    Thank you very very much ....to teach us
    Apna

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

    Hello sir I'm just scrolling youtube suddenly i see your Chai और java script video Playlist when I play video i realise i need to subscribe your channel. You are making such a good content ☺️ Thanx

  • @akroyalmaker
    @akroyalmaker 10 месяцев назад +5

    Sir paisa wasool series hai👌👌But aapne to paise liye hi nahi💯💯❤❤

  • @nuctanKatira
    @nuctanKatira 6 месяцев назад +2

    00:02 Learn JavaScript with a goal of creating a website or app
    01:57 Variables and constants are important for storing and manipulating information in programming.
    03:51 Variables in JavaScript can be declared using 'const' keyword
    05:40 Understanding the usage of let, const, and var in JavaScript.
    07:58 Console.log is an easy shortcut to print out values
    09:58 You can create variables and declare constants using JavaScript
    12:05 The problem of scope in JavaScript has been solved by using let, const, and var.
    14:06 JavaScript allows variable declaration without assigning a value
    16:18 JavaScript is simple if studied in an investigative manner

  • @beingstarter7385
    @beingstarter7385 2 года назад +2

    Sir ,your teaching style are so awesome sir.
    Sir aapke lecture dekhne waqt lgta hi nhi hum padh rhe ho sub batto batto me aap sikha jatte sir .
    Aapki har video ka wait rahega sir🥰🥰

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

    Just Started Javascript Learning from **Hitesh Sir and the way he explains is amazing and depth he give is truly wonders me and witty humor. Love you sir

  • @tejaskhanolkar3844
    @tejaskhanolkar3844 2 года назад +1

    सर आप इतना precisely कैसे पढाते हो.
    आपके साभि वीडियो अच्छे quality के होते है
    आप सिर्फ पढाते ही नही पढाई के तरिखे भि बताते हो.
    धन्यवाद 🙏

  • @mahesh17_360
    @mahesh17_360 2 года назад

    🤩🤩🤩woow daly wait karte hai sir video ka and jb bhi video aye bohot happy hojate hai ❤️

  • @devl0ver666
    @devl0ver666 8 месяцев назад +1

    abhi thore din pahle kisi or ka ek js course complete kya tha jisme pura course hi var ke uper karwa diya 🥲🥲or usme advanced topics bhi nahi the isi liye ab apka course dekhne agaya huuuuuuuuuuuuuuuuuuuuuun

  • @abhinavgamercr1419
    @abhinavgamercr1419 9 месяцев назад +2

    Jabardast . Best coding channel I found on RUclips

  • @Study-volt
    @Study-volt Год назад +9

    My college website is big shit filled with so many information which is boring to see , so I decided to make new website of my college, with some easy and logic information

  • @mdsonualam8408
    @mdsonualam8408 2 года назад +28

    Today's lecture has given me a new perspective to learn more about Js.
    Learning to build something.
    "Main sikh q rha hu "js yeh sawal k baad i feel more involved ki ha kuch hai jo achieve krlunga through completing this🤍🤍
    Looking foreward to build my first E-Commerce app with you sir✅

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

      Suniye na mera terminal open krne pr node file name likhe to error cannot find dikha rha h ky kre ?

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

      @@achaljaiswal1202 edit path in environment variable

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

    Thank you for making such a beautiful javascript tutorial. Because You teach the actual javascript which is necessary for actual production development need. Very Very thank you. I will share your channel as much as possible to everyone. I really like your teaching style and I aslo need that type of javascript teacher. God bless you.

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

    Sir hamari ☕️ or appke code perfect combination Awsm teaching sir

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

    I want to build the first E-Commerce website which is having more functionalities. Which is my ultimate goal. Sach mai es video ke bad me clear hogya ki mai js programming sikh que rha hu. Thank you so much for valuable content #Chai aur Code

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

    Thank you sir for this tutorial..👍 Amazingly explained.. I have been asked the difference between let, var and const in my technical interview today and it helped me to explain this concept in an efficient way..!!

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

    Best ever method of teaching ...love and respect from Pakistan❤️

  • @bijayagiri5746
    @bijayagiri5746 2 года назад +1

    thank you sir for all you are doing in Hindi. I am from Nepal so tutorials in Hindi is far better and understandable.

  • @irshvlogs6779
    @irshvlogs6779 6 месяцев назад +1

    Ap k smjhany or bolny ka andaz bhtt acha hai... Stay blessed... ❤❤

  • @midhattech
    @midhattech 2 года назад

    Thank you sir. I do comments just for RUclips Algorithm .
    You r providing us very useful information that's why I comment for the RUclips algo

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

    Thank you to Hitesh Sir for making such an awesome video! 🙌🎥 Brushing up on my JS knowledge 🧠

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

    I have learnt HTML from your playlist and the way you explains everything ,it looks very simple to understand. Most importantly your positive vibes with smile on face .Thank you ❤

  • @AbhishekKumar-fq1zz
    @AbhishekKumar-fq1zz Год назад +1

    Started this playlist to really understand the basics to advanced from you. Teaching like this, so smoothly, I literally inspired to learn and dig deep into JavaScript and build something great web apps.

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

    why am i learning js?
    I already know basic js, wanted to learn more js so that i can easily learn js frameworks and libraries.
    also u teach so many things that other tutorials never taught us. big thanks!!

  • @Jamshaid.Developer
    @Jamshaid.Developer 4 месяца назад

    really you are great sir that is course helpfull for every beginner student before it seems i cannot learned javascript but now it seems i can javascript and now i do javascript thanks you very much sir ❤❤❤❤and you are hero for me and every beginner student

  • @CandleLight-Shorts
    @CandleLight-Shorts Год назад +1

    Coding + guidence is really great and helpful, thanks for this series of quality videos.

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

    I love the way you r teaching, it's look like some radio jukie is teaching ❤,thanks for your efforts

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

    first two minutes were amazing sir!! Mindset is Everything

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

    you made my all confusions clear with so friendly way of teaching. Thank you so much 😇

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

    Hitesh Sir makes the vision very clear. Learn to build🔥

  • @ahndgke-tu1wo
    @ahndgke-tu1wo 7 месяцев назад +1

    Sir you are great. Perfect explanation of variables🙌

  • @akashtamrakar74
    @akashtamrakar74 2 года назад +1

    you are the best sir i love your voice and way you talk thanks for javasecipt series in hindi ke liye 🙏

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

    Hitesh Sir 🚀 is the Real GOAT in the Programming World ✨💫

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

    you haave created such a beautiful content you dnt have idea , this is perfect way to learn js ty ty sm

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

    you are great sir i was looking for a tutor same as you ek teer se 10 nishaane this is my propensity and you hit it... feeling nice

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

    i have no interest in coding but after getting suggestion of your channel i am glad thanks a lot sir

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

    Excellent teaching method Sir, I really enjoyed watching this series. thank you for such helpful technical content ❤

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

    Starting this JS playlist .I am sure I will enjoy this playlist as well❤

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

    WOWWWWWWWWWWWWWW. Your Way of teaching is sooooooooooo good. Thank You 🙏

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

    Your teaching style is very sweet, everything is understandable

  • @TechieHeish1-bm2nd
    @TechieHeish1-bm2nd 7 месяцев назад +2

    Great explanation: "let", "const", "var";

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

    Awesome explain method. I am fresh beginner but your explain method is very very very good.

  • @sakshirai1912
    @sakshirai1912 2 года назад

    Are sir lallan top number 1 ka content hai it's really awesome lecture

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

    Best understanding. I like your teaching style 16:34

  • @neerajnegi-xq6pf
    @neerajnegi-xq6pf 8 месяцев назад

    00:02 Learn JavaScript with a goal of creating a website or app
    01:57 Variables and constants are important for storing and manipulating information in programming.
    03:51 Variables in JavaScript can be declared using 'const' keyword
    05:40 Understanding the usage of let, const, and var in JavaScript.
    07:58 Console.log is an easy shortcut to print out values
    09:58 You can create variables and declare constants using JavaScript
    12:05 The problem of scope in JavaScript has been solved by using let, const, and var.
    14:06 JavaScript allows variable declaration without assigning a value
    16:18 JavaScript is simple if studied in an investigative manner
    Crafted by Merlin AI.

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

    i feeel attacked at 0:29 😢, i'm a neet student learning JS😅

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

    Sir I'm impressed for your teaching Idea osm sir keep it up sir I'm starting js playlists

  • @nishantmathur7139
    @nishantmathur7139 2 года назад

    just love you nothing else and yes we do respect your efforts please continue doing it these students need it because college ka haal toh sabko pata h thank you and khoob khush raho

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

    Sir, Very Good Explanation, Love Form My Side...

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

    starting again this series hope this time i get all the voice notes for hitesh sir in my mind

  • @vimalradadiya5929
    @vimalradadiya5929 2 года назад +1

    Khub khub ahhbhar apka for this video

    • @chaiaurcode
      @chaiaurcode  2 года назад

      Aapka b, video like krne ke liye

  • @ankushladani496
    @ankushladani496 2 года назад

    Maja aa raha he bahut hi guruji....♥️♥️

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

    very interesting sir keep it up

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

    Is video se console.table naya sikha maine
    Thank you sir
    Aashirwad dijiye revision kar raha hu

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

    I like the way u talk , good communication skill

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

    Your style of teaching is so interesting and good sir❤😊 thank u so much

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

    you are right জীবনে গোল না থাকলে আগে বাড়া যায় না

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

    Maza aagaya 😊 video dekh ke

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

    best platform to learn Javascript

  • @Rishusrivastava519
    @Rishusrivastava519 2 года назад +1

    Whenever I watched your video i always learn one new things 😁

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

    whenever a watches a vedio i always learns new things thanks Chai aur Code

  • @Kuch_Bhi-lets_explore_it
    @Kuch_Bhi-lets_explore_it 2 года назад +3

    Hitesh Sir I just watched your podcast on TRS hindi with ranveer bhai, And I really really appreciate and Loved it ❤️ , From the starting journey of your career to i neuron company and your vision your ideas on which you are working it just amazing and I liked it , and feels relatable bcoz I am also an engineer and an explorer and scientist from heart, who just loves to create invent new things working on innovative ideas , solving problems , adventurer so, I enjoy each and every second of the podcast Thankyou thankyou so much for sharing all this. , Traveling experience you share about veniece and a different perspective you share about china and all OMG , I can't say how much interesting the conversation it is , I want to see you back very soon and want to listen more. & Hope I will get the opportunity to meet you also soon , Till that I am coding .. & building myself so, I grab the opportunity to meet you at the right time and will have great conversation ✨ , Thanks once again Hitesh Sir ❤️
    P.S :- Your personality and the way you present the things that's just amazing , Will definitely lot to learn from you from coding to grooming 😁🔥 You are just amazing sir ❤️✨

  • @Inspiring__Minds25-f5w
    @Inspiring__Minds25-f5w Месяц назад

    Amazing session sir ji❤

  • @Zeeshan.20
    @Zeeshan.20 9 месяцев назад

    Thank you for creating beginners friendly playlist of javascript

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

    Thank you so much sir..your way of teaching is so intersting and supperb🥰

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

    Sir I am from Web development 2.0 batch concept clear hogaya

  • @lakshmankumar9228
    @lakshmankumar9228 2 года назад +2

    Awesome investigation study 😁
    Thank you guru ji 🙏

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

    Sir, you are the great 👍

  • @piyushgarg41
    @piyushgarg41 2 года назад +1

    Plz teach complete javascript never leave in between . It's amazing to see videos

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

    wow kitni achi explanation

  • @ahadullah-x1u
    @ahadullah-x1u Год назад

    Nice works Sir I really like your method of teaching 💕💕

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

    JUST FANTASTIC 🤩🤩🤩💚💚💚💚

  • @yes-its-goliya
    @yes-its-goliya 7 месяцев назад

    🏃‍♀Day 1✅
    Thank you so much sir 🤗

  • @sarveshgaynar207
    @sarveshgaynar207 2 года назад

    Ur teaching style is amazing 🤩

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

    sir you yourself a big university with such abundance of knowledge and more over the skills of how to teach and grow coming gen. 🙏thanks for your efforts please DS bhi hindi pe kardein sir ji , i can assure with ur videos as reference coming days we can see lots of successful startups in social application or web.

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

    The console.table method is so cool !

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

    "Hey Chai or Code and Hitesh Choudhary, I'm on the edge of my seat in anticipation for the backend full series and DSA series on this channel! ☕💻 Your content is like the perfect blend of coding wisdom and the soothing essence of chai, and I can't wait to dive deep into these topics with your expert guidance. Keep brewing up those fantastic tutorials, and I'll keep sipping and coding along! 🚀🔥"

  • @meditate-yourself
    @meditate-yourself Год назад +1

    sir you are the best teacher

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

    oh bhaisahab 🙂loved it

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

    Honestly, I had the same motive to just learn some coding language to get a job but, as im learning it everyday im enjoying it and to see whatever im doing is creating somethings give me a good feeling

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

    Simply we can say that let cant be accessed only inside the scope and where as the var is easily accessible inside the functional scope :
    For example:
    const function (){
    if(true){
    let a = 5;
    var b =6;
    }
    console.log(a); //the result will be undefined
    console.log(b); // the result will be 6
    }
    also during hoisting you can find given result
    console.log(a); //a is not defined
    let a = 9;
    console.log(b);// undefined : you can use b before its declaration wow
    var b = 4;

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

    thanks for amazing contents

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

    thank you for your hard efforts

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

    I am learning JavaScript so that i can execute a business idea that I think is going to make youtube more feasible for learners like us....
    Hope I am able to create that idea after this course.

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

    Thank you for making Javascript interesting to learn!☺

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

      Though I have a paid course, but still I was facing difficulties and started searching more about in RUclips, luckily I found yours and was amazed by the details you give, the way you teach ❤❤

  • @hari_the_lazyprogrammer
    @hari_the_lazyprogrammer 2 года назад +11

    Hi Hitesh sir,
    Please move the small window (in which we can see you) from video to right -bottom . As this is overlapping the console content.

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

    Very innovative way of teaching❤

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

    oh, MERN stack,, Sir you just spoke it.. great to listen. I found my answer.. Thanks again

  • @sunainabhadoria6742
    @sunainabhadoria6742 2 года назад

    Sir your way of explaining concepts is fabulous...totally involved in the video.

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

    Very very helpful.....😍

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

    Awesome