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... Наука
Ohh my god, what i just watched matlab bhai itne achee se kon samjata hai😍, please sir puri series ko complete karna🙏🙏
Including shortcuts impressive
I complete 100 likes😂😂🎉
@@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.
❤❤
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
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
Teaching is not everyone's cup of tea. hats off to you Sir.
"Kudos to Chai aur Code for simplifying complex JS concepts. The clarity is unmatched!"
Although being an FSD, I have no understanding of consoles.table. I acknowledge you as my Guru 🙏🙏
Ap k smjhany or bolny ka andaz bhtt acha hai... Stay blessed... ❤❤
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.
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.
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
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
Jabardast . Best coding channel I found on RUclips
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
Sir paisa wasool series hai👌👌But aapne to paise liye hi nahi💯💯❤❤
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🥰🥰
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
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!!
Diamond always hidden in Coal ❤...
Best Tutor Ever ..
Thank you very very much ....to teach us
Apna
Great explanation: "let", "const", "var";
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.
Sir you are great. Perfect explanation of variables🙌
I love the way you r teaching, it's look like some radio jukie is teaching ❤,thanks for your efforts
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..!!
Sir hamari ☕️ or appke code perfect combination Awsm teaching sir
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
सर आप इतना precisely कैसे पढाते हो.
आपके साभि वीडियो अच्छे quality के होते है
आप सिर्फ पढाते ही नही पढाई के तरिखे भि बताते हो.
धन्यवाद 🙏
first two minutes were amazing sir!! Mindset is Everything
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 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 ❤️✨
Thank you to Hitesh Sir for making such an awesome video! 🙌🎥 Brushing up on my JS knowledge 🧠
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
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
Hitesh Sir makes the vision very clear. Learn to build🔥
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 ❤
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
Hitesh Sir 🚀 is the Real GOAT in the Programming World ✨💫
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
Coding + guidence is really great and helpful, thanks for this series of quality videos.
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.
Starting this JS playlist .I am sure I will enjoy this playlist as well❤
WOWWWWWWWWWWWWWW. Your Way of teaching is sooooooooooo good. Thank You 🙏
Plz teach complete javascript never leave in between . It's amazing to see videos
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
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
Whenever I watched your video i always learn one new things 😁
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
you haave created such a beautiful content you dnt have idea , this is perfect way to learn js ty ty sm
whenever a watches a vedio i always learns new things thanks Chai aur Code
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;
Best ever method of teaching ...love and respect from Pakistan❤️
i have no interest in coding but after getting suggestion of your channel i am glad thanks a lot sir
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
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.
Excellent teaching method Sir, I really enjoyed watching this series. thank you for such helpful technical content ❤
you are the best sir i love your voice and way you talk thanks for javasecipt series in hindi ke liye 🙏
Thanks
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.
Learned the difference between let, var and constants
Prefer not to use var because of issue in block scope and functional scope❤
Sir I'm impressed for your teaching Idea osm sir keep it up sir I'm starting js playlists
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 ❤
sir your face hide the console.log part. kindly use corner in circle mood major difficulty that we faced.
"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! 🚀🔥"
Thank you for creating beginners friendly playlist of javascript
you are right জীবনে গোল না থাকলে আগে বাড়া যায় না
Your style of teaching is so interesting and good sir❤😊 thank u so much
Pw skills waiting for hitesh sir
Best understanding. I like your teaching style 16:34
you are the best teacher. This video is very helpful for beginner. Easy understandable your explanation. thanks. 💗
sir you are the best teacher
Is video se console.table naya sikha maine
Thank you sir
Aashirwad dijiye revision kar raha hu
Guru ji se true love ho gaya 😂
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
This video deserves comments in lacs
i feeel attacked at 0:29 😢, i'm a neet student learning JS😅
Awesome investigation study 😁
Thank you guru ji 🙏
Thanks
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.
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
Nice works Sir I really like your method of teaching 💕💕
🏃♀Day 1✅
Thank you so much sir 🤗
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.
Mil ke kya karega?
@@yashjain8746 Baate karunga. Ek saal pehle comment par kya reply kar raha hai bhai.
Sir your way of explaining concepts is fabulous...totally involved in the video.
oh, MERN stack,, Sir you just spoke it.. great to listen. I found my answer.. Thanks again
🤩🤩🤩woow daly wait karte hai sir video ka and jb bhi video aye bohot happy hojate hai ❤️
I like the way u talk , good communication skill
Sir, you are the great 👍
Thank you so much sir..your way of teaching is so intersting and supperb🥰
Khub khub ahhbhar apka for this video
Aapka b, video like krne ke liye
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.
thank you kyuki mujhe aaj pata chala k mera goal sahi hai want an ecommerece app and website
Great job Sir please keep it up
Love from Pak
Nice video sir 🙏
love you Sir🙏🙏
Ur teaching style is amazing 🤩
Thank you sir for the precious content!
Sir Amazing Teaching style🎉.Plz complete The series with all advance Js topics.
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
Love the way of saying ""hannjiiiiii ""
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 ❤❤
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.
thanks for amazing contents