//datatypes are based on memory allocation Primitive datatypes-> call by value (string,number,boolean,null,undefined,BigInt,symbol) ->Stack memory Reference/Non primitive data types -> call by reference ( array,object, function) -> heap memory JavaScript is a dynamically typed language. This means that you don't need to specify the data type of a variable when you declare it.
CLEARLY UNDERSTANDABLE PLAYLIST MAJA AA GAYA SIR ITNA ARRAM SE THO SIRF APP HI COURSE COVER KAR SAKTE HOO ....THANKU YOU ARE A VERY GOOD TEACHER APPRECIATE YOUR TEACHING STYLE EASY WAY MAI THANKU JIII😀😇😇😇
There are 2 types of datatype 1. Primitive datatype:- 1.String 2. Number 3. Boolean (true / false) 4. null (iska matlab hai empty or zero nahi hai) 5. undefined (aapne variable declare kardiya hai but usmein aap kya value dalenge aapne decide nahi kiya hai) 6. Symbol (kisi bhi value ko unique banane ke liye use kiya jata hai) 7. BigInt (jo badi values hoti hai oo hum BigInt mein use karte hai) 2. Preference datatype (Non Primitive datatype) 1. Array ( [ ] ) 2. Object ( { } ) 3. Function ( function( ){ } )
Primitive Types: 1. Stored in stack. 2. Passed or assigned by value (call by value). 3. Changes to copies don't affect the original. Reference Types: 1. Stored in heap; accessed via references (stored in stack). 2. Changing the value through another reference affects the original.
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 mene ye concept phle bhi padha hai but smj nhi aya tha. Complex krke padhya tha teacher nai but apne bhot easy way mai explain krdiya stack and heap
hey hitesh, i am from Pakistan, and I had A lot of confusing regarding this concept I tried hard to understand it by chatGPT and also with other TH-cam videos, but I was unable to understand this concept, thank you so much,
"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! 🚀🔥"
Well Sir, agar me ne chaey pehley hi pi li ho, or bad me is lecture ko dekh raha hun, koi tension to nahi??? hahahaha.. just for fun, Sir you are doing great. I really like you, Stack and Heap is root of any Programming language, but mostly mentor don't touch it, but you're covering this one also,, nice, great, marvellous.
Great explanation sir, Event loop bhi issi tarah se explain kar dijiye, woh bahot confusing hai. We know things but koi puche toh explain nahi kar pate ache se
• Stake/primitive • Call by value • No object here Stack mei aage copy pass hoti h, to agr koi bhi changes copy mei hote hain to main mei koi fark nhi padega. ---------- • Heap/non-primitive • Call by reference • Object here Heap mei reference pass hota h, to reference mei changes honge to main mei changes aa jayenge.
Thank you so much sir!! Welcome Back! But sir Kya ye sahi ki whole day wait kre aur Next day bs ek video 🥲🥺 I know aap busy h kaafi but ye dil h ki Manta nahi.🥲
Primitive data types are immutable and non-primitive data types are mutable. Primitive data type stored in stack memory and non primitive data types are stored in heap memory.
primitive data type has 7 type Number = number , String = string, Boolean = Boolean, understand = object, symbol=symbol, bigint=number, null = object. Non primitive Array, object, function
So the information is that primitive data type uses stack for memory allocation and it make the copy of the value whereas the non-primitive data type usese heap where value are refereenced .
Your example of stack memorey has a little issue Let myTH-camName="something" Let another = myTH-camName myTH-camName ="newsomething" Now if I log it My youtbe name will print the new value But another will still be of the same value as it only stored a copy of the myTH-camName.
//datatypes are based on memory allocation
Primitive datatypes-> call by value (string,number,boolean,null,undefined,BigInt,symbol) ->Stack memory
Reference/Non primitive data types -> call by reference ( array,object, function) -> heap memory
JavaScript is a dynamically typed language. This means that you don't need to specify the data type of a variable when you declare it.
thanks for the summary ❤
shouldn't non primitive data type be call by address?
CLEARLY UNDERSTANDABLE PLAYLIST MAJA AA GAYA SIR ITNA ARRAM SE THO SIRF APP HI COURSE COVER KAR SAKTE HOO ....THANKU YOU ARE A VERY GOOD TEACHER APPRECIATE YOUR TEACHING STYLE EASY WAY MAI THANKU JIII😀😇😇😇
Teacher Teach Tech Tremendously! Usually I am not complete most of the courses more than 20% but i touch video 10, is one of the milestone for me!
"Hats off to Chai aur Code for transforming my coding experience. Clear, concise, and captivating!"
There are 2 types of datatype
1. Primitive datatype:-
1.String
2. Number
3. Boolean (true / false)
4. null (iska matlab hai empty or zero nahi hai)
5. undefined (aapne variable declare kardiya hai but usmein aap kya value dalenge aapne decide nahi kiya hai)
6. Symbol (kisi bhi value ko unique banane ke liye use kiya jata hai)
7. BigInt (jo badi values hoti hai oo hum BigInt mein use karte hai)
2. Preference datatype (Non Primitive datatype)
1. Array ( [ ] )
2. Object ( { } )
3. Function ( function( ){ } )
anything in js other than primite data types are object
One correction
Preference ❌ - Reference ✔️
Reference Datatype* not Preference
Thank You Brother
Yeh different tha...Jo mein ny seekha.... shukr ha koi Essa teacher TH-cam Py mil geya
it's not free, It's most valuable class for us
Fir share krke linkedin pe tag to nhi aaya sir 😁
@@chaiaurcode will do it sir. Thank you for your reply.
@@chaiaurcode karne ke bad ap kuch repost ey like bhi tho nahi karte mai apko kita tag karta hu
9:45 sir topic difficult hai
but apne esko easy way mai explain krke easy topic bana diya hai
thank you and keep uploading
sir jii aap ne toh bolte tha ki sab log asie hi padte h but asa nhi h guru jii apne lag hi level se padya h guru jii ur amazing 🫡🫡🫡🫡🫡
Primitive Types:
1. Stored in stack.
2. Passed or assigned by value (call by value).
3. Changes to copies don't affect the original.
Reference Types:
1. Stored in heap; accessed via references (stored in stack).
2. Changing the value through another reference affects the original.
Thank you Sir for making the difficult concept extremely simple. God bless you.
😍 Love the way you simplified. If teaching is an Art you are Leonardo da Vinci.
I love you
Thank you sir, i won smart india hackathon !!!!!!!!!!!!.thankyou so much Hitesh sir
Watching this playlist for the second time. Each time I am learning new things and my JS concepts are clearing more.
is se zda asan mane aj tak ni smjha topic sara smjh a gya tusi great oo ustad ji love you from pakistan
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.
was confused in this concept from FSJS bootcamp 2, now cleared, thanks sir,
Glad to hear that
Primitive Datatypes
Number => number
String => string
Boolean => boolean
null => object
undefined => undefined
Symbol => symbol
BigInt => bigint
2) Non-primitive Datatypes
Arrays => object
Function => function
Object => object
pehli baar aaya is channel pe. sir! your style of teaching is another level🔥. i forgot all the other channels.....
Splendid sir! very different and easy to understand, pata nhi College teachers aise kyun nhi batate
calm and peaceful and enjoyful explanation
mjaa aa gya ek dm
sir mene ye concept phle bhi padha hai but smj nhi aya tha.
Complex krke padhya tha teacher nai
but apne bhot easy way mai explain krdiya stack and heap
I was confused when I tried express js. now cleared. Thanks a lot 🙏🙏🙏
A little bit complex but after watching this video for 3 to 4 times, I got this topic of Stack & Heap. 🤗
Literally nobody taught this on entire TH-cam in javascript your the first ❤
asaanni say seekh lia .... zabardast. learned after a long time in a simple way. Great Job
the best programming teacher ..from Pakistan ❤
i am from pak.. you nailed this concept in my mind man
Thank you to Hitesh Sir for making such an awesome video! 🙌🎥 Brushing up on my JS knowledge 🧠
hey hitesh, i am from Pakistan, and I had A lot of confusing regarding this concept I tried hard to understand it by chatGPT and also with other TH-cam videos, but I was unable to understand this concept, thank you so much,
I DONT KNOW WHY I SUBSCRIBED YOUR CHANNEL, BECAUSE I NEVER SUBSCRIBED ANY CHANNEL. I THINK YOU ARE THE BEST, THAT'S WHY.....THANKS
sir Ur teaching style is great 👍 itna easily samjha diye ...
One of the best explanation on Stack and Heap memory ❤
This course is best as compared to any other paid courses out there! 👽Hard work is appreciated by heart
"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! 🚀🔥"
chatgpt
Bohut sundar hindi kaha apne aaj. 👏👏
simple precise short and meaningful. Thanks mentor.
5:37 Really amazing , before the code running got the things !! Great Sir !
best Series ALL OVER UNIVERSE, thank you Sir 🙏
Well Sir, agar me ne chaey pehley hi pi li ho, or bad me is lecture ko dekh raha hun, koi tension to nahi??? hahahaha.. just for fun, Sir you are doing great. I really like you, Stack and Heap is root of any Programming language, but mostly mentor don't touch it, but you're covering this one also,, nice, great, marvellous.
Great explanation sir,
Event loop bhi issi tarah se explain kar dijiye, woh bahot confusing hai.
We know things but koi puche toh explain nahi kar pate ache se
Quality content is always underrated ❤️
#ThankYouHiteshSir
Agree
mind blowing. It is so easy to learn from you sir. Cont day 2
thank you bhaiya for giving us ur precious time and attention.
Omg it was too easy i made it too difficult to understand. Thank u so much❤
😀😀😀 best and easy way to explain. that is best one playlist .
Haan ji bhut acche se samjh aagya.❤🙌
Clear and concise ,thankyou.
thank you sir ... lots of love from Panchkula haryana
Amazing video! Well explained stack and heap memory
Explanation was great ,too easy to understand ,Subscribed😁
• Stake/primitive
• Call by value
• No object here
Stack mei aage copy pass hoti h, to agr koi bhi changes copy mei hote hain to main mei koi fark nhi padega.
----------
• Heap/non-primitive
• Call by reference
• Object here
Heap mei reference pass hota h, to reference mei changes honge to main mei changes aa jayenge.
Thank you so much sir!! Welcome Back!
But sir Kya ye sahi ki whole day wait kre aur Next day bs ek video 🥲🥺 I know aap busy h kaafi but ye dil h ki Manta nahi.🥲
Consistency aa jaye 1 baar is channel pe, fir speed b aa jayegi 😁
You are great teacher
Best explanation of stack and heap keep it up !
copy in stack memory and reference in heap , a little more example needs to clarify it, so we demand more
Heap memory wala bahut interesting tha bhaiya...
Primitive data types are immutable and non-primitive data types are mutable. Primitive data type stored in stack memory and non primitive data types are stored in heap memory.
yesssss just completed 10 videos with proper understanding
getting in-depth knowledge. Thanks sir
Really sir you are really the best teacher
Very complex concept easily explained
I think this is best channel on TH-cam
sir mai daily lecture apka dekhta hu aur js sikhata hu
such a good explaination🔥🔥
hello, bhaiya aapki videos best hain please nodejs aur express js pe bhi series ka sochiye
So simple to understand
Sir g espe thoda aur deep me video bnaeye....intrasting and important v h...please.
bahut mja aa rha h sikhane me
lots of love hitesh bhai
such a good explaination, thank you
ab jaake kuch baat bani thank you bro
Kya baat hai Sir Ap ki....very well
Easily Explained.
Thanks.
You made it very easy to understand
Typeof Primitive Datatypes:
Number : number
String : string
Boolean : boolean
Null : object
Undefined :undefined
Symbole : Symbole
BigInt : number
typeof Primitive Datatypes
Object : object
Fucntion : fucntion object
Array : object
When the topics are really tough, Hitesh sir makes it easy and makes it understandable. ☕&
#10 tutorial thanks for this tutorial 🙂
primitive data type has 7 type
Number = number ,
String = string,
Boolean = Boolean,
understand = object,
symbol=symbol,
bigint=number,
null = object.
Non primitive
Array, object, function
Very well explained! 👏👏
shouldn't strings be stored on the heap? strings are growable buffers and stack allocated data shouldn't be growable.
Thank you so much sir 😊
very smooth explaination
Number = number
String= string
Boolean= true/false
BigInt= bigint
Null = object
Undefined= undefined
Arrays = object
Function= function
Object= object
yha sai mai shallow copy or deep copy ka concept bhi samaj gya.
ES javascript course ko koi beat nahi kar paega
Agree
sir need a more detailed video 🙌
Thanks for the video Sir 🙂
So the information is that primitive data type uses stack for memory allocation and it make the copy of the value whereas the non-primitive data type usese heap where value are refereenced .
very useful this series
Your example of stack memorey has a little issue
Let myTH-camName="something"
Let another = myTH-camName
myTH-camName ="newsomething"
Now if I log it
My youtbe name will print the new value
But another will still be of the same value as it only stored a copy of the myTH-camName.
Excellent 😀
thanks itne ache content k leay !
oho tatprya word sunke maza aya gaya sir 😀
#king's explanation ❤
Already shared sir ... Ab kitna kru bahut kiya share aage Achha lgega toh share krunga 🤪
JavaScript ke liye ek book suggest kijiye n
sir js mein sabse zyada important kon sa topic hai
Concept clear💡
Thank you so much sir ❤