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...
"Kudos to Chai aur Code for simplifying complex JS concepts. The clarity is unmatched!"
Teaching is not everyone's cup of tea. hats off to you Sir.
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 🙌
Thanks
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])
Thanks bro for notes
thanks
Bhai isi tarah har video me likh dena kafi helpful rhega
thanks mate
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.
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 🙏🙏
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
Although being an FSD, I have no understanding of consoles.table. I acknowledge you as my Guru 🙏🙏
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.
Diamond always hidden in Coal ❤...
Best Tutor Ever ..
Thank you very very much ....to teach us
Apna
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
Sir paisa wasool series hai👌👌But aapne to paise liye hi nahi💯💯❤❤
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
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🥰🥰
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
सर आप इतना precisely कैसे पढाते हो.
आपके साभि वीडियो अच्छे quality के होते है
आप सिर्फ पढाते ही नही पढाई के तरिखे भि बताते हो.
धन्यवाद 🙏
🤩🤩🤩woow daly wait karte hai sir video ka and jb bhi video aye bohot happy hojate hai ❤️
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
Jabardast . Best coding channel I found on RUclips
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
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✅
Suniye na mera terminal open krne pr node file name likhe to error cannot find dikha rha h ky kre ?
@@achaljaiswal1202 edit path in environment variable
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.
Sir hamari ☕️ or appke code perfect combination Awsm teaching sir
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
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..!!
Best ever method of teaching ...love and respect from Pakistan❤️
thank you sir for all you are doing in Hindi. I am from Nepal so tutorials in Hindi is far better and understandable.
You are most welcome
Ap k smjhany or bolny ka andaz bhtt acha hai... Stay blessed... ❤❤
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
Thank you to Hitesh Sir for making such an awesome video! 🙌🎥 Brushing up on my JS knowledge 🧠
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 ❤
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.
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!!
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
Coding + guidence is really great and helpful, thanks for this series of quality videos.
I love the way you r teaching, it's look like some radio jukie is teaching ❤,thanks for your efforts
first two minutes were amazing sir!! Mindset is Everything
you made my all confusions clear with so friendly way of teaching. Thank you so much 😇
Hitesh Sir makes the vision very clear. Learn to build🔥
Sir you are great. Perfect explanation of variables🙌
you are the best sir i love your voice and way you talk thanks for javasecipt series in hindi ke liye 🙏
Thanks
Hitesh Sir 🚀 is the Real GOAT in the Programming World ✨💫
you haave created such a beautiful content you dnt have idea , this is perfect way to learn js ty ty sm
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
i have no interest in coding but after getting suggestion of your channel i am glad thanks a lot sir
Excellent teaching method Sir, I really enjoyed watching this series. thank you for such helpful technical content ❤
Starting this JS playlist .I am sure I will enjoy this playlist as well❤
WOWWWWWWWWWWWWWW. Your Way of teaching is sooooooooooo good. Thank You 🙏
Your teaching style is very sweet, everything is understandable
Great explanation: "let", "const", "var";
Awesome explain method. I am fresh beginner but your explain method is very very very good.
Are sir lallan top number 1 ka content hai it's really awesome lecture
Best understanding. I like your teaching style 16:34
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.
i feeel attacked at 0:29 😢, i'm a neet student learning JS😅
Sir I'm impressed for your teaching Idea osm sir keep it up sir I'm starting js playlists
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
Sir, Very Good Explanation, Love Form My Side...
starting again this series hope this time i get all the voice notes for hitesh sir in my mind
Khub khub ahhbhar apka for this video
Aapka b, video like krne ke liye
Maja aa raha he bahut hi guruji....♥️♥️
very interesting sir keep it up
Is video se console.table naya sikha maine
Thank you sir
Aashirwad dijiye revision kar raha hu
I like the way u talk , good communication skill
Your style of teaching is so interesting and good sir❤😊 thank u so much
you are right জীবনে গোল না থাকলে আগে বাড়া যায় না
Maza aagaya 😊 video dekh ke
best platform to learn Javascript
Whenever I watched your video i always learn one new things 😁
whenever a watches a vedio i always learns new things thanks Chai aur Code
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 ❤️✨
Amazing session sir ji❤
Thank you for creating beginners friendly playlist of javascript
Thank you so much sir..your way of teaching is so intersting and supperb🥰
Sir I am from Web development 2.0 batch concept clear hogaya
Awesome investigation study 😁
Thank you guru ji 🙏
Thanks
Sir, you are the great 👍
Plz teach complete javascript never leave in between . It's amazing to see videos
wow kitni achi explanation
Nice works Sir I really like your method of teaching 💕💕
JUST FANTASTIC 🤩🤩🤩💚💚💚💚
🏃♀Day 1✅
Thank you so much sir 🤗
Ur teaching style is amazing 🤩
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.
The console.table method is so cool !
"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! 🚀🔥"
sir you are the best teacher
oh bhaisahab 🙂loved it
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
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;
thanks for amazing contents
thank you for your hard efforts
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.
Thank you for making Javascript interesting to learn!☺
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 ❤❤
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.
Noted
Very innovative way of teaching❤
oh, MERN stack,, Sir you just spoke it.. great to listen. I found my answer.. Thanks again
Sir your way of explaining concepts is fabulous...totally involved in the video.
Very very helpful.....😍
Awesome