JavaScript Variables Explained in Depth | let, const, var | The Complete JavaScript Course | Ep.04

Поділитися
Вставка
  • Опубліковано 5 лют 2025

КОМЕНТАРІ • 231

  • @amnnnnn.n
    @amnnnnn.n 3 місяці тому +3

    which notepad you are using bhaiya

    • @faizanmohammed7687
      @faizanmohammed7687 3 місяці тому +1

      I think you're talking about the black background with white text which talks about variables, let const and var. That's HTML file content displayed on the browser.

  • @KrishnaKamlesh-r6z
    @KrishnaKamlesh-r6z 10 місяців тому +4

    Mujhe js pehle se aata hai phir bhi aapka lecture follow kar raha hu kyunki aap ek great teacher ho❤

  • @relightgaming7155
    @relightgaming7155 10 місяців тому +1

    sir 4 mahine se coding seekh rha hu idhar udhar bhatak rha hu jab se apki interview series dekhni shuru ki smjh m ana shuru hua ki padhna kese h fir apki js series padhna shuru se shuru krdia thankyou very much ki aapne coders ka dard smjha beginners ka

  • @NeerajKumar-wk4qq
    @NeerajKumar-wk4qq 23 дні тому +1

    Bahut kuch sikha hai sir, but Pascal, Snake, Kabab etc part was best. 😁😁Thank you.

  • @sushant3530
    @sushant3530 10 місяців тому +5

    1. let, const - scope inside {} i.e. only available inside the block where they're defined (block scope) ; but var has scope outside {} -i.e. available throughout the function in which they're declared ( function scoped )
    2. let, const - New ; var - Old
    3. let, const - cannot be used before initialization, it will throw error ; var - can be used before initialization, it will throw undefined
    4. const- value assigned cannot be changed, and value must be assigned at time of initialization, where let, var - can be be assigned after initialization, and assigned value can also be changed in future.

  • @vinaypatil8009
    @vinaypatil8009 2 роки тому +14

    Appka portfolio kdkk hai sir.
    We are lucky because you are providing and teaching this skills from scratch. Very few people can have that courage.
    Thank you so much for your hard work ❤️😊

    • @procodrr
      @procodrr  2 роки тому +9

      Thank you so much Bhai 😊
      Apna support aise hi banaye rakhna, aage bahot mast mast chijein aane wali hain.
      Ye to abhi shuruaat hai.

    • @vinaypatil8009
      @vinaypatil8009 2 роки тому +3

      @@procodrr jhee bilkul 👍🏽

  • @AfzalKhan-wf3wl
    @AfzalKhan-wf3wl Місяць тому

    A Variable is like a container that holds some value and the value can change/vary in later in the program.
    Three ways to create variable:
    - var (old way)
    - let & const (modern way)
    var variable has function scope, whereas let & const has block scope.
    var variable are hoisted whereas let & const are not hoisted.
    Good explanation keep up the good work 👍👍

  • @mtechkhan
    @mtechkhan 3 місяці тому +2

    Sir Pakistan 🇵🇰 se apka Course Follow ker raha hun bohot Hi detailed and indepth me ache trikse app samjhate hen Thanks 👍

  • @maha5
    @maha5 3 місяці тому

    Ek ghanta kaise beeta pata hi nahi chala Sir. Superb teaching. As good as / better than many engineering college lecturers. dhanyavad.

  • @nikhilsingh2889
    @nikhilsingh2889 2 роки тому +21

    Sir aap itne time se kahan thee, ess tarah ki knowledge kisi ne provide nhi kiya......
    We love you sir....👍💯

    • @procodrr
      @procodrr  2 роки тому +11

      Main bhi padhai kar raha tha 😄
      Thank you for so much love and support 😊
      Keep Learning and Sharing.

    • @anumtanveer7668
      @anumtanveer7668 7 місяців тому +1

      😂😂❤❤​@@procodrr

  • @Nothing25636
    @Nothing25636 10 місяців тому +6

    Aap ne choti but important points bataya hai. It will help in building fundamental logics.

  • @Information24_seven
    @Information24_seven 4 місяці тому

    Mujhe toh poora video achha laga 😅❤ aapne mujhe html sikha diya css sikha diya abb Java script sikh Raha hu

  • @Md-Selim-Ahmed
    @Md-Selim-Ahmed 8 місяців тому +13

    hello Anurag ..
    i am from bangladesh your video just wow ..
    i saw many javascript course on youtube
    but its javascript course world best .
    and its underrated youtube channel.
    i wish this channel very soon 1M Subscriber .

    • @SaadAbdullahjaved
      @SaadAbdullahjaved 4 місяці тому

      lekin jo tum logo ne hinduo per atychar jo kiya h wo ab m kya hi kahu

    • @Md-Selim-Ahmed
      @Md-Selim-Ahmed 4 місяці тому +1

      @@SaadAbdullahjaved are you sure bangladeshi hindu people’s minority Attack going on,,

  • @priyankajoshi2996
    @priyankajoshi2996 2 роки тому +20

    Sir bhut bdiya series chl rhi hai ....17k 18k ka course free mein dere ho ...hats off to you sir

    • @procodrr
      @procodrr  2 роки тому +40

      Mere sare course jo bhi UA-cam per hain humesha rahenge.
      Aage chalkar Node.js, Mongodb, Express.js, Typescript aur bhi courses aayenge.
      Mera goal hai ki ham India se ek skilled youth ko produce karein jo ki har company ke liye ek asset hon.
      Na ki desh ke upar hi bojh ban jayen.
      Aur agar aise ki apka support raha to ham zaroor ismein kamyab honge 😊

    • @omdeshkar4290
      @omdeshkar4290 2 роки тому +4

      @@procodrr great initiative

    • @procodrr
      @procodrr  2 роки тому +3

      ❤️

    • @CodeXtream
      @CodeXtream 11 місяців тому +1

      Great thinking ❤❤❤😊😊

    • @panda-ir7gx
      @panda-ir7gx 8 місяців тому +1

      Sch mae aj mujhe let var const bhot ache se smjh aaya. Ab kbhi ni bhulunga yeh topic

  • @hammad_me
    @hammad_me 5 місяців тому +2

    I tried foreign UA-camr's courses for JavaScript but none of them could explain like you do.
    To be honest it is very rare for me to comment on a video like this.
    But honestly man this needs some appreciation.
    You're doing great.
    I hope you get successful in your UA-cam journey.
    Also you've provided subtitles in English.
    Mad respect man.
    I would suggest you to translate and upload these videos in English and other languages too, to get global audience.

    • @procodrr
      @procodrr  5 місяців тому +1

      Thanks for your support. Keep learning and growing 😊

  • @rmworld420
    @rmworld420 10 місяців тому +1

    Very Nice Sir One Of the Best Teacher Javascript .
    Jo bhi aa rha hai pura video dekh ke ja rha hai . Maine Abhi Tak Aisa video nhi dekha ❤❤❤❤
    I appreciate you sir | Jai Shri Ram 🙏🙏 |

    • @procodrr
      @procodrr  10 місяців тому

      Jai Shree Ram 🙏

  • @sachinnegi6357
    @sachinnegi6357 Рік тому +3

    At first I really did not wanted to follow this course because of its length.. but after watching couple of initial videos ..
    I realized that it is really good to have an elaborate and clear knowledge of concepts and fundamentals for long time journey..
    I am finally following your course now.
    Very excited to finish the course, and be able to build really good projects with javascript....
    Thanks for this playlist, it's really a gem.. for me❤

    • @procodrr
      @procodrr  Рік тому +2

      All the best Sachin for your JavaScript journey 👍
      I'm glad you liked it 😊

  • @Bidhan_m007
    @Bidhan_m007 8 місяців тому

    Sir me bhi January me start kiya tha apka front end course 4 months me itna progress me kabhi expect nahi karta tha hat's off to your teaching style ❤

  • @Aditya-c5n
    @Aditya-c5n 3 місяці тому

    completed js episode 4. keep teaching and motivating us sir. thanks and have a wonderful day

  • @sahilmarshiya8462
    @sahilmarshiya8462 4 місяці тому +2

    i have 2 years of experience , still struggling in js ,i hope your video will help my coding journey

  • @abdullahkhan-xn1ww
    @abdullahkhan-xn1ww 5 місяців тому

    Sir JavaScript ki series 3 bar dakh chuka tha but khuch maza nhi aya lakin ap ka teaching method bohot acha ha love from Pakistan

  • @anikkash
    @anikkash 9 місяців тому +3

    Hello sir,
    You are just awesome,
    After watching your third video of variables, I am somewhat confident that I can learn JavaScript as I'm coming from a non-it background. Thanks much for your kind support.

  • @Devendarakoushal
    @Devendarakoushal 3 місяці тому +1

    Hello anurag brother, i have unable to say you thanks by any words for youre teachings ❤

  • @jitinder11
    @jitinder11 3 місяці тому +1

    Morning, I understand very well var, let and const. Thank you

  • @NamdevMadde
    @NamdevMadde 4 місяці тому

    Finding this very helpful even after learning web development for last one year

  • @HazratAbuBakar-qd8zz
    @HazratAbuBakar-qd8zz 9 місяців тому +1

    i am following all the lectures and i hope when i complete this and made my name in this i am gonna request to take be interview by sir anurag!!!!
    big respect sir🤩🤩

  • @wajahatbaigmirza2195
    @wajahatbaigmirza2195 5 місяців тому +2

    I watch so many javascript playlist to find the best course on youtube finally i found the best playlist for javascript thanku anurag sir😊😊😊

    • @Vipasna02310
      @Vipasna02310 5 місяців тому

      i start today this course and it is really amzing

  • @Pushpak_UE_devlover
    @Pushpak_UE_devlover 15 днів тому

    I started this playlist today day 1
    I know basics of javascript so I will binge watch basic part and if I found any topic which I don't know then I will try that topic

  • @vampiredesai
    @vampiredesai 2 місяці тому +1

    Anurag sir you teach so well, I just completed this video and I'm now convinced how variables work in JS. All thanks to you and your teachings, thankyou so much😀
    Just a request can you provide some source or recommendations for practicing your topics as I prefer ChatGPT and other stuffs Sir!
    But, do you have some other and If so then please recommend it to me Sir!
    peace.

  • @Mansoor_Creations
    @Mansoor_Creations 6 місяців тому

    one of the best courses out there on youtube, Highly Appreciated sir, I am learning Javascript to land a fresher job in Mern Stack, I would surely like to follow you to the end sir! Bundle of Thanks

  • @shakshikejriwal6906
    @shakshikejriwal6906 7 місяців тому +1

    I had watched so many videos for the javascript course but your lecture among them is one of the best i can say. I highly recommend your lectures to one who is starting with the programming and want to be pro in it. Also there are answers to the questions that were asked in the interviews, that adds a advantage to this tutorial. Thank you so much for this Javascript course. Looking forward to learn more with this series.

    • @procodrr
      @procodrr  7 місяців тому +1

      Glad you like my lectures.
      Keep learning and growing 😊

    • @amitnayak845
      @amitnayak845 5 днів тому

      Thank you darling ❤

  • @sanjivanidhage7540
    @sanjivanidhage7540 6 місяців тому +1

    No words sir ji 🙏 bohot badhiya sikhate ho aap 👏👍

  • @saaifbanday8437
    @saaifbanday8437 8 місяців тому +1

    Thank's for providing such amazing content on UA-cam, That too for free! It's incredibly helpful, and I really appreciate the effort you have put in.

  • @Hashir-704
    @Hashir-704 7 місяців тому +1

    best javaScript course on youtube 👌

  • @DeveloperTest-h3o
    @DeveloperTest-h3o 8 місяців тому +1

    Oh man I am professional developer, lot to learn to you, I am a kannadiga

  • @vipin143kumar
    @vipin143kumar 8 місяців тому +1

    Hello Anurag Ji,
    Thank you for explaining the differences between let, const, and var in detail. I look forward to learning more about their specific uses and best practices. If I have any questions, I'll be sure to reach out. Love u

  • @Munna95362
    @Munna95362 9 місяців тому

    Code practice and Interview question practice dono ho raha hai ... Awesome ❤🎉

  • @adityasinghh04
    @adityasinghh04 11 місяців тому +3

    Good Afternoon Bhaiya. Episode 4 completed

  • @abhinav6726
    @abhinav6726 8 місяців тому

    ep-4 completed learned about difference between var,let and const

  • @aieee5221
    @aieee5221 Рік тому +3

    Sir aapke samjhane ka tarika sabse different aur achha hai ❤ maine aapki HTML , CSS ki Puri series complete ki hai 😊😊

    • @procodrr
      @procodrr  Рік тому +2

      Ye to bahot achhi baat hai ki tumne HTML aur CSS poora complete kar liya hai, aise hi seekhte raho.
      Aur JavaScript videos dekhne ke saath saath CSS ke khoob saare projects banao taaki CSS ki practice hoti rahe.
      Keep learning and sharing 😊

    • @aieee5221
      @aieee5221 Рік тому

      @@procodrr yes sir

  • @nagarajkyatari7903
    @nagarajkyatari7903 5 місяців тому +1

    Here i just felt so awesome and proud that you pronunced the word Kannada correctly🥰. Also Thank you for such a good course, i have just started it is interesting.

    • @procodrr
      @procodrr  5 місяців тому

      I can read Kannada completely and understand a bit 😊

  • @secretcode96
    @secretcode96 4 місяці тому +1

    badiya samjhaya bhai❤

  • @Collecting_one_piece_fan
    @Collecting_one_piece_fan 4 місяці тому

    DAY 2 : Video 5 thank you sir for making such great video 😊

  • @apubiswas-m1r
    @apubiswas-m1r 9 місяців тому +2

    Best part of this video is in depth knowladge

  • @jackflick
    @jackflick 4 місяці тому

    Let var and const m difference sikhe..thankyou sir❤

  • @MySoftCode
    @MySoftCode 9 місяців тому

    Very important points are clear... It will be so helpful to understand basic logics in js...
    Thank You Sir ❤❤...

  • @bollaramstudio801
    @bollaramstudio801 7 місяців тому +2

    This course best for Javascript.. enter UA-cam se Best.. Thank you

    • @procodrr
      @procodrr  7 місяців тому +1

      Thank you so much 😊

  • @Sophia_Khan
    @Sophia_Khan 9 місяців тому +6

    The third difference between var and let is that, a variable declared with "var" can be redeclared but with "let" we can't redeclare a variable in the same scope or block.

  • @abrarshakilahmed
    @abrarshakilahmed 6 місяців тому

    thank you sir mast laga class ! apka class bohot depth m h

  • @ajaykhati3078
    @ajaykhati3078 8 місяців тому

    1 month katam krna ka bad bhut sare vidios katam krka finnaly apse js pad kr samj aa ra

  • @surajbansal6239
    @surajbansal6239 6 місяців тому

    A variable is a name in which we can store a value either string, number, boolean, undefined, null, bigint. A variable can contain any of the following character but not start with digit(0 to 9),but start with two special characters $(dollar) and _ (underscore)and a normal characters (a to z or A to Z) .There are three types of variable Var,Let,Const,var is a function variable and let & const are scope variable.

  • @horror-panic-tube
    @horror-panic-tube 7 місяців тому

    Teaching style is love

  • @jatinnandwani6678
    @jatinnandwani6678 7 місяців тому +1

    So much value delivered in one video.. waah

  • @sahilkarnahake4517
    @sahilkarnahake4517 5 місяців тому

    we are with u sir your teaching is best🤗

  • @hpi_anc
    @hpi_anc 2 роки тому +2

    Bhaiya mujhe to aata hai y sb lekin mujhe aapki aawaj bahut achchi lagi isiliye me aapka video pura dekhta hu ❤️😀😅

    • @procodrr
      @procodrr  2 роки тому +1

      Thank you so much bro 😊😃😃
      Next video dekhna, usme tumhare liye Naya rahega

  • @pankajmauryavns
    @pankajmauryavns 6 місяців тому

    Thank you Anurag Bhaiya...🙏

  • @ravneetkaur4139
    @ravneetkaur4139 10 місяців тому

    thankyou bhaiya ji aapne bahut achhe se sab samjhaya 🙏🙏🙏🙏🙏🙏🙏🙏

  • @AnshulOjha091
    @AnshulOjha091 8 місяців тому +2

    confidently following your series sir

  • @jatinnandwani6678
    @jatinnandwani6678 7 місяців тому +1

    Excellent course mate.. this is quite good

    • @procodrr
      @procodrr  7 місяців тому

      Thanks a ton 😊

  • @KALI-LINUX-HACKER-888
    @KALI-LINUX-HACKER-888 7 місяців тому +1

    Apna college bhi aapke Aage kuch bhi nahi 👌🏻

  • @R_SinghRajput
    @R_SinghRajput 7 місяців тому

    56:52 U said Kannada bro nt Kannad ,thats very nice 😍

  • @KhawajaAbdurRehman-jj2uj
    @KhawajaAbdurRehman-jj2uj 6 місяців тому

    Stay Happy Always . Love from Urdu Pakistan !!

  • @VikashSingh-pg8bz
    @VikashSingh-pg8bz 2 місяці тому

    Variable.... ache se samajh aaya

  • @soumikhazra80
    @soumikhazra80 9 місяців тому +1

    At 34:15 , sir, in JavaScript, when a script runs, every variable initially receives the data type of ‘undefined’ during the memory allocation phase. After this phase, the script proceeds to the execution phase. During execution, variables that already have values retain those values. However, variables that do not have any assigned value remain ‘undefined’ by default, as they do not receive a value from any variable during the execution phase.

  • @jamreji8662
    @jamreji8662 10 місяців тому +2

    thank you sir for full and defth explained of variables

  • @chetandewalkar4542
    @chetandewalkar4542 10 місяців тому

    Thank you very much sirJi. Very nice explaination. I follow this JS series.

  • @Vipasna02310
    @Vipasna02310 5 місяців тому

    thank you, sir for this amazing javascript course

  • @aritrakhatua1482
    @aritrakhatua1482 9 місяців тому

    Thanks for providing so much detailed vast knowledge .

  • @vaishnavipatil4164
    @vaishnavipatil4164 Місяць тому

    Pure teaching!!

  • @shree1411
    @shree1411 8 місяців тому

    Gaining basic knowledge, thank you very much

  • @manojk-r2p
    @manojk-r2p 6 місяців тому

    very good teaching

  • @jatinnandwani6678
    @jatinnandwani6678 7 місяців тому +1

    Explanation is excellent

    • @procodrr
      @procodrr  7 місяців тому

      Thank you 😊

  • @bugathanani4800
    @bugathanani4800 Рік тому +3

    Clear cut explanation superrrb

    • @procodrr
      @procodrr  Рік тому +1

      Awesome, keep learning and sharing 😊

  • @premmourya7060
    @premmourya7060 2 роки тому +2

    Btw lag rha h je seekh jaunga m thnk u sir 🙏

  • @himanshurawat7882
    @himanshurawat7882 6 місяців тому +1

    Sir ek typescript ka bhi complete course bana dijiye

  • @GauravSingh-id2mf
    @GauravSingh-id2mf 2 роки тому +2

    Thanku bhai ji for deep knowledge

    • @procodrr
      @procodrr  2 роки тому +1

      Great Bhai 👍
      Keep Learning and Sharing 😊

  • @raohammadraza
    @raohammadraza 6 місяців тому

    Amazing Course

  • @smarakisubhadarshini638
    @smarakisubhadarshini638 11 місяців тому +1

    concept clear hogya pura thanks.

    • @procodrr
      @procodrr  11 місяців тому

      Awesome, keep learning and sharing 😊

  • @ritikhattimare3341
    @ritikhattimare3341 7 місяців тому

    nice video veryhelpful

  • @SandeepMaurya-fz4zb
    @SandeepMaurya-fz4zb 3 місяці тому

    let , var , const diff let , const are work within blocked but var is function code can access any where 2- diff var can acces before initialise before declacration but not in let and const

  • @alimranali4921
    @alimranali4921 Рік тому +3

    Very detailed 😊

    • @procodrr
      @procodrr  Рік тому

      Awesome, keep learning and sharing 😊

  • @amaris1832
    @amaris1832 5 місяців тому

    100k soon!!🤩🤩

  • @vumsh
    @vumsh 9 місяців тому +2

    25:05 Assignment Done
    let fName = "Sarim";
    let lName = "Hassan";
    let Age = 20;
    let mySelf = "My Name is " + fName + ' ' + lName + ". I am " + Age + ' ' + "Years Old.";
    mySelf;

  • @RishabhVaishnav-vg2so
    @RishabhVaishnav-vg2so 8 місяців тому

    let and var me difference let block scope hota hai and var function scope hota hai and secound difference
    var key word se kisi ko difine kiye hai to usko pahe print karwa sakte hai par uski value nahi ayeg par yo error bhi nahi dega aur let ke case me error aa jaye gi

  • @oppomobile-ur4jd
    @oppomobile-ur4jd 2 роки тому +3

    Very good content 💯

  • @amanverma5846
    @amanverma5846 2 роки тому +3

    Sir Maza hi aa gya. I'm sorry for being toxic but how the fk you are underrated.
    Thanks alot very very much.

    • @procodrr
      @procodrr  2 роки тому +1

      Because it's a new channel Bro. I have started this course in September of this year itself.
      Many students need this content but they don't know that this channel exists.
      Now it is your and other subscribers responsibility to propagate course between the students who need this.

    • @amanverma5846
      @amanverma5846 2 роки тому +1

      @@procodrr Indeed. I'll share your videos as much I can ❤️

    • @procodrr
      @procodrr  2 роки тому

      Awesome Bro 😊
      Thanks 🙏

  • @vaibhavchaudhary2006
    @vaibhavchaudhary2006 5 місяців тому

    Excellent

  • @tiwarikanishk5366
    @tiwarikanishk5366 11 місяців тому +2

    gm bhaiyaaa love from jaunpur ep-04 cmpltd . aisa course pure yt pr chhoro paidd v nhi h

    • @procodrr
      @procodrr  11 місяців тому

      Thanks you so much. It means a lot.
      Keep learning and sharing 😊

  • @14vikas62
    @14vikas62 Рік тому +1

    Sir you are amazing ❤ .

  • @Agreed_with
    @Agreed_with 5 місяців тому

    mashalla goood work

  • @Darshit-2002
    @Darshit-2002 6 місяців тому +1

    before initialize
    console =====>
    1.let is getting error before initialize and
    2.var is get value undefine
    3.const in can not change the value
    and best way to use with const variable

  • @anitasingh77725
    @anitasingh77725 5 місяців тому

    Sir aap typescript ka course kab start karenge

  • @aritrakhatua1482
    @aritrakhatua1482 9 місяців тому

    I request you to please make a playlist of NodeJS, NextJS🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

  • @ParvezKhan-ep7zg
    @ParvezKhan-ep7zg 11 місяців тому +1

    Bhai isme mujhe 1 error araha hai variables me
    Console me error show 😢 hora hai
    ( uncaught reference error : userIntro is not defined at :1:1
    Me ne same to same wahi Kiya jesa aapne code Kiya hai lakeen firr bhi yahi show hora hai aapke pc me konsa settings hai ???

    • @procodrr
      @procodrr  11 місяців тому +1

      t.me/procodrr
      Ye telegram group join kar lo, aur apne code ka aur console dono ka screenshot lekar yaha par bhej aur apna question poocho.

  • @iamvariable01
    @iamvariable01 4 місяці тому +2

    Irony is that Variable learns about Variable from procodrr.

  • @dontscrollitt
    @dontscrollitt 2 роки тому +3

    Hello bro If possible plz upload some videos on design thinking.

    • @procodrr
      @procodrr  2 роки тому +2

      Yes bro, it is in my bucket list.

  • @sagarkushwaha7990
    @sagarkushwaha7990 4 місяці тому

    Thanks sir ❤❤❤❤❤

  • @mayankde000
    @mayankde000 5 місяців тому

    Bhaiya i tried it with TypeScript but chrome is not detecting TS! Need help 🤚

  • @codexAbhi007
    @codexAbhi007 7 місяців тому +1

    sir i am following your bootcamp till now Amazing.
    please sir can you tell the software name of the black board that u used?

    • @procodrr
      @procodrr  7 місяців тому

      Thank you so much. Keep learning and growing 😊
      The software name is excalidraw.com

    • @codexAbhi007
      @codexAbhi007 7 місяців тому

      @@procodrr Thank you sir 🙏

  • @Ubaid_Coder
    @Ubaid_Coder 8 місяців тому

    I like the parseInt function