Let, const and var ki kahani | chai aur

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • 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...
  • НаукаНаука

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

  • @akshayyadav5914
    @akshayyadav5914 Год назад +131

    Ohh my god, what i just watched matlab bhai itne achee se kon samjata hai😍, please sir puri series ko complete karna🙏🙏

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

      Including shortcuts impressive

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

      I complete 100 likes😂😂🎉

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

      @@familyverma6173 thanks, i completely forgot, that i commented this, it's been a year it was a wonderful journey i got the remote job, everything is goin good, thank again hitesh.

    • @ramjanalisiddiqui1965
      @ramjanalisiddiqui1965 9 дней назад

      ❤❤

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

    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 6 месяцев назад +4

      Thanks bro for notes

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

      thanks

    • @Ck_Ak_i43
      @Ck_Ak_i43 14 дней назад +2

      Bhai isi tarah har video me likh dena kafi helpful rhega

  • @Kuch_Bhi-lets_explore_it
    @Kuch_Bhi-lets_explore_it Год назад +63

    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 🙌

  • @syedrizwan2203
    @syedrizwan2203 10 месяцев назад +8

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

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

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

  • @AritVyas
    @AritVyas 8 месяцев назад +2

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

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

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

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

    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.

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

    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.

  • @mdsonualam8408
    @mdsonualam8408 Год назад +27

    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 10 месяцев назад

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

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

      @@achaljaiswal1202 edit path in environment variable

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

    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

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

    Jabardast . Best coding channel I found on RUclips

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

    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

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

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

  • @beingstarter7385
    @beingstarter7385 Год назад +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🥰🥰

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

    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.

  • @soumelee5661
    @soumelee5661 10 месяцев назад +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!!

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

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

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

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

  • @AbhishekKumar-fq1zz
    @AbhishekKumar-fq1zz 10 месяцев назад +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.

  • @JeetendraPatel-tu1wo
    @JeetendraPatel-tu1wo 2 месяца назад +1

    Sir you are great. Perfect explanation of variables🙌

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

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

  • @huriyatabassumkhan8895
    @huriyatabassumkhan8895 11 месяцев назад +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..!!

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

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

  • @devl0ver666
    @devl0ver666 3 месяца назад +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

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

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

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

    first two minutes were amazing sir!! Mindset is Everything

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

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

  • @Kuch_Bhi-lets_explore_it
    @Kuch_Bhi-lets_explore_it Год назад +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 ❤️✨

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

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

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

    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

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

    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

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

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

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

    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 ❤

  • @Study-volt
    @Study-volt 7 месяцев назад +5

    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

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

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

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

    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

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

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

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

    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.

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

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

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

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

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

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

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

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

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

    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

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

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

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

    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

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

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

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

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

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

    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;

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

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

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

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

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

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

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

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

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

    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.

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

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

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

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

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

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

    Learned the difference between let, var and constants

  • @DivyaKumari-ur3gz
    @DivyaKumari-ur3gz 2 месяца назад +1

    Prefer not to use var because of issue in block scope and functional scope❤

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

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

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

    Aaj pta chala ki mai to starting se hi investigation wali padhai krta aya hu
    Bs pta nhi tha ki ise investigation wali padhai bolte h 😂
    Lekin aapke sikhane ka style ka jawab nhi sir ❤

  • @n___series1173
    @n___series1173 7 месяцев назад +2

    sir your face hide the console.log part. kindly use corner in circle mood major difficulty that we faced.

  • @user-kq5pk8kr8c
    @user-kq5pk8kr8c 10 месяцев назад

    "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! 🚀🔥"

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

    Thank you for creating beginners friendly playlist of javascript

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

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

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

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

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

    Pw skills waiting for hitesh sir

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

    Best understanding. I like your teaching style 16:34

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

    you are the best teacher. This video is very helpful for beginner. Easy understandable your explanation. thanks. 💗

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

    sir you are the best teacher

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

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

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

    Guru ji se true love ho gaya 😂

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

    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

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

    This video deserves comments in lacs

  • @Adityasm27
    @Adityasm27 7 месяцев назад +3

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

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

    Awesome investigation study 😁
    Thank you guru ji 🙏

  • @1Learning-rr4pw
    @1Learning-rr4pw 3 месяца назад

    Var can be declared and accessed globally. Let can be declared globally, but its access is limited to the block in which it is declared.

  • @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

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

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

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

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

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

    Sir kya mai aapse mil sakta hu mai Jaipur me hi rehta hu kya koi tareeka hai aapse milne ka kyuki aap hi is RUclips me sahi guidance dete ho aur jab se aapne Hindi channel shuru kiya hai tabse muje bhoht acche se cheeze samaj aa rahi hai. Thank you.

    • @yashjain8746
      @yashjain8746 19 дней назад

      Mil ke kya karega?

    • @tanmayyguptaa
      @tanmayyguptaa 19 дней назад

      @@yashjain8746 Baate karunga. Ek saal pehle comment par kya reply kar raha hai bhai.

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

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

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

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

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

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

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

    I like the way u talk , good communication skill

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

    Sir, you are the great 👍

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

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

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

    Khub khub ahhbhar apka for this video

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

      Aapka b, video like krne ke liye

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

    1:30 My aim is build clone of e-commerce and social media and JS is a tool that help me build a mobile or web app. and my main goal is learn and build a project.

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

    thank you kyuki mujhe aaj pata chala k mera goal sahi hai want an ecommerece app and website

  • @user-gs6ts3rd5z
    @user-gs6ts3rd5z 11 месяцев назад

    Great job Sir please keep it up
    Love from Pak

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

    Nice video sir 🙏

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

    love you Sir🙏🙏

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

    Ur teaching style is amazing 🤩

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

    Thank you sir for the precious content!

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

    Sir Amazing Teaching style🎉.Plz complete The series with all advance Js topics.

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

      can you please help me to resolve an issue
      Actually mein github ke codespace mein jab code likha tha toh woh error show krrha he "node 01_basics/test.js" ke time pe

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

    Love the way of saying ""hannjiiiiii ""

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

    Thank you for making Javascript interesting to learn!☺

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

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

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

    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.

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

    thanks for amazing contents