Let, const and var ki kahani | chai aur #javascript

preview_player
Показать описание
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 ?

Рекомендации по теме
Комментарии
Автор

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

akshayyadav
Автор

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 🙌

Kuch_Bhi-lets_explore_it
Автор

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

syedrizwan
Автор

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])

elyramzan
Автор

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

BitFire
Автор

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

AritVyas
Автор

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.

akashthoriya
Автор

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.

SandeepDhama
Автор

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

irshvlogs
Автор

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

maheshingle
Автор

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

urprakashgupta
Автор

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✅

mdsonualam
Автор

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

ritamehra
Автор

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

Developersdiaries
Автор

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

hackpiece
Автор

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

akroyalmaker
Автор

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

beingstarter
Автор

first two minutes were amazing sir!! Mindset is Everything

aggarwalsachin
Автор

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

GOATCR
Автор

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

tejaskhanolkar