Тёмный

Stack and Heap memory in javascript 

Chai aur Code
Подписаться 411 тыс.
Просмотров 201 тыс.
50% 1

Visit chaicode.com for all related materials, community help, source code etc.
github.com/hit...

Опубликовано:

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 211   
@LearnerAbhi21
@LearnerAbhi21 11 месяцев назад
//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.
@ChethanYadav
@ChethanYadav 9 месяцев назад
thanks for the summary ❤
@honblegaurav9917
@honblegaurav9917 2 месяца назад
shouldn't non primitive data type be call by address?
@Talha_75
@Talha_75 Год назад
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( ){ } )
@yogeshbairwa
@yogeshbairwa 11 месяцев назад
anything in js other than primite data types are object
@nikhatansari3310
@nikhatansari3310 10 месяцев назад
One correction Preference ❌ - Reference ✔️
@theavalontech
@theavalontech 9 месяцев назад
Reference Datatype* not Preference
@PrathmeshGirme-i3f
@PrathmeshGirme-i3f 3 месяца назад
Thank You Brother
@Anshuverma4674
@Anshuverma4674 6 месяцев назад
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😀😇😇😇
@iamkmsyed
@iamkmsyed 7 месяцев назад
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!
@ajaysinghrathour8622
@ajaysinghrathour8622 Год назад
it's not free, It's most valuable class for us
@chaiaurcode
@chaiaurcode Год назад
Fir share krke linkedin pe tag to nhi aaya sir 😁
@ajaysinghrathour8622
@ajaysinghrathour8622 Год назад
@@chaiaurcode will do it sir. Thank you for your reply.
@jayprakashyadab
@jayprakashyadab 5 месяцев назад
@@chaiaurcode karne ke bad ap kuch repost ey like bhi tho nahi karte mai apko kita tag karta hu
@SounakSaha-nh5qm
@SounakSaha-nh5qm Год назад
Thank you Sir for making the difficult concept extremely simple. God bless you.
@believeyou8530
@believeyou8530 11 месяцев назад
😍 Love the way you simplified. If teaching is an Art you are Leonardo da Vinci.
@AnjumWaheed
@AnjumWaheed 11 месяцев назад
I love you
@BitFire007
@BitFire007 6 месяцев назад
"Hats off to Chai aur Code for transforming my coding experience. Clear, concise, and captivating!"
@rabiafaisal558
@rabiafaisal558 11 месяцев назад
Yeh different tha...Jo mein ny seekha.... shukr ha koi Essa teacher RU-vid Py mil geya
@vivektiwari6200
@vivektiwari6200 Год назад
was confused in this concept from FSJS bootcamp 2, now cleared, thanks sir,
@chaiaurcode
@chaiaurcode Год назад
Glad to hear that
@RajeevTutorials-ii4jc
@RajeevTutorials-ii4jc 10 месяцев назад
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 🫡🫡🫡🫡🫡
@yogeshkumarpatil591
@yogeshkumarpatil591 9 месяцев назад
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.
@anmol.rajput.2
@anmol.rajput.2 3 месяца назад
pehli baar aaya is channel pe. sir! your style of teaching is another level🔥. i forgot all the other channels.....
@shailenderjaiswal1685
@shailenderjaiswal1685 11 месяцев назад
calm and peaceful and enjoyful explanation mjaa aa gya ek dm
@shahriarhossain8622
@shahriarhossain8622 20 дней назад
Watching this playlist for the second time. Each time I am learning new things and my JS concepts are clearing more.
@priyadarshiranjan5181
@priyadarshiranjan5181 3 месяца назад
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
@heisenberg6461
@heisenberg6461 Год назад
Quality content is always underrated ❤️ #ThankYouHiteshSir
@chaiaurcode
@chaiaurcode Год назад
Agree
@namansharmacsb1063
@namansharmacsb1063 5 месяцев назад
9:45 sir topic difficult hai but apne esko easy way mai explain krke easy topic bana diya hai thank you and keep uploading
@niteshkushwaha9493
@niteshkushwaha9493 7 месяцев назад
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.
@user-kq5pk8kr8c
@user-kq5pk8kr8c 11 месяцев назад
"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! 🚀🔥"
@honblegaurav9917
@honblegaurav9917 2 месяца назад
chatgpt
@once-upon-a-time-7
@once-upon-a-time-7 3 месяца назад
is se zda asan mane aj tak ni smjha topic sara smjh a gya tusi great oo ustad ji love you from pakistan
@devDiver
@devDiver 9 месяцев назад
I was confused when I tried express js. now cleared. Thanks a lot 🙏🙏🙏
@samuelfernandes3301
@samuelfernandes3301 9 месяцев назад
Literally nobody taught this on entire RU-vid in javascript your the first ❤
@viraljain9197
@viraljain9197 Месяц назад
Thank you to Hitesh Sir for making such an awesome video! 🙌🎥 Brushing up on my JS knowledge 🧠
@namansharmacsb1063
@namansharmacsb1063 5 месяцев назад
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
@softheartpeople
@softheartpeople 11 месяцев назад
simple precise short and meaningful. Thanks mentor.
@CodeWithRains
@CodeWithRains 3 месяца назад
5:37 Really amazing , before the code running got the things !! Great Sir !
@enxzy
@enxzy 10 месяцев назад
This course is best as compared to any other paid courses out there! 👽Hard work is appreciated by heart
@CodeWithUjjwal-01
@CodeWithUjjwal-01 5 месяцев назад
A little bit complex but after watching this video for 3 to 4 times, I got this topic of Stack & Heap. 🤗
@baitullahkhan5030
@baitullahkhan5030 Год назад
the best programming teacher ..from Pakistan ❤
@rendevous9253
@rendevous9253 11 месяцев назад
Bohut sundar hindi kaha apne aaj. 👏👏
@muhammadishaque4818
@muhammadishaque4818 2 месяца назад
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 RU-vid videos, but I was unable to understand this concept, thank you so much,
@syedmaji
@syedmaji Год назад
asaanni say seekh lia .... zabardast. learned after a long time in a simple way. Great Job
@ravishbisht502
@ravishbisht502 10 месяцев назад
Omg it was too easy i made it too difficult to understand. Thank u so much❤
@adarshmaddheshiya4413
@adarshmaddheshiya4413 7 месяцев назад
One of the best explanation on Stack and Heap memory ❤
@m-series719
@m-series719 Месяц назад
thank you sir ... lots of love from Panchkula haryana
@JohnWick-ds5wb
@JohnWick-ds5wb Год назад
thank you bhaiya for giving us ur precious time and attention.
@rationalindianguy
@rationalindianguy Год назад
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.🥲
@chaiaurcode
@chaiaurcode Год назад
Consistency aa jaye 1 baar is channel pe, fir speed b aa jayegi 😁
@dilipjaiswal3038
@dilipjaiswal3038 Год назад
sir Ur teaching style is great 👍 itna easily samjha diye ...
@razashah7881
@razashah7881 4 месяца назад
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.
@samadsiddiqui5925
@samadsiddiqui5925 11 месяцев назад
Amazing video! Well explained stack and heap memory
@srijareddy1088
@srijareddy1088 3 месяца назад
Clear and concise ,thankyou.
@muhammadyasir2275
@muhammadyasir2275 4 месяца назад
i am from pak.. you nailed this concept in my mind man
@RagSingh-e2e
@RagSingh-e2e 6 месяцев назад
best Series ALL OVER UNIVERSE, thank you Sir 🙏
@Daani213
@Daani213 5 месяцев назад
😀😀😀 best and easy way to explain. that is best one playlist .
@awaisahmad8935
@awaisahmad8935 2 месяца назад
copy in stack memory and reference in heap , a little more example needs to clarify it, so we demand more
@techindepth371
@techindepth371 3 месяца назад
mind blowing. It is so easy to learn from you sir. Cont day 2
@RahulKumar-ve3lm
@RahulKumar-ve3lm 4 месяца назад
I DONT KNOW WHY I SUBSCRIBED YOUR CHANNEL, BECAUSE I NEVER SUBSCRIBED ANY CHANNEL. I THINK YOU ARE THE BEST, THAT'S WHY.....THANKS
@E_ter_nit_y
@E_ter_nit_y 3 месяца назад
such a good explaination🔥🔥
@abhishekgautam9767
@abhishekgautam9767 11 месяцев назад
You are great teacher
@akashthoriya
@akashthoriya Год назад
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
@I_am_Jisu
@I_am_Jisu Год назад
Explanation was great ,too easy to understand ,Subscribed😁
@suryapratap_bit
@suryapratap_bit Месяц назад
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.
@kakashi_69_xd
@kakashi_69_xd 3 месяца назад
shouldn't strings be stored on the heap? strings are growable buffers and stack allocated data shouldn't be growable.
@zainulkhan8381
@zainulkhan8381 7 месяцев назад
Best explanation of stack and heap keep it up !
@nikhatansari3310
@nikhatansari3310 10 месяцев назад
Thank you so much sir 😊
@DhariSingh-w6v
@DhariSingh-w6v 11 месяцев назад
#10 tutorial thanks for this tutorial 🙂
@shubham_srt
@shubham_srt 4 месяца назад
such a good explaination, thank you
@Yasinkhan-tm8jv
@Yasinkhan-tm8jv 9 месяцев назад
getting in-depth knowledge. Thanks sir
@gauravsrivastava17
@gauravsrivastava17 2 месяца назад
So simple to understand
@prashantkumardas369
@prashantkumardas369 10 месяцев назад
Stack me original values change nhi hoti but heap m original value ho jati hai
@TOONSSTATION
@TOONSSTATION 7 месяцев назад
Easily Explained. Thanks.
@jamshirtangri5757
@jamshirtangri5757 22 дня назад
lots of love hitesh bhai
@guitargig123
@guitargig123 7 месяцев назад
Very complex concept easily explained
@feelalive440
@feelalive440 3 месяца назад
ab jaake kuch baat bani thank you bro
@sameer23377
@sameer23377 2 дня назад
Thanks for the video Sir 🙂
@Rajveer__singhhhh
@Rajveer__singhhhh 11 месяцев назад
I think this is best channel on RU-vid
@New_Movie_Watch
@New_Movie_Watch 7 месяцев назад
yesssss just completed 10 videos with proper understanding
@sumitsinha995
@sumitsinha995 8 месяцев назад
Heap memory wala bahut interesting tha bhaiya...
@masterju2648
@masterju2648 Год назад
Really sir you are really the best teacher
@qazimtahir
@qazimtahir 5 месяцев назад
Excellent 😀
@ByteNinjas69
@ByteNinjas69 Год назад
Kya baat hai Sir Ap ki....very well
@Soulcraft_with_Pritha
@Soulcraft_with_Pritha 8 месяцев назад
Very well explained! 👏👏
@shub226
@shub226 Год назад
ES javascript course ko koi beat nahi kar paega
@chaiaurcode
@chaiaurcode Год назад
Agree
@Instrumentation010
@Instrumentation010 9 месяцев назад
You made it very easy to understand
@_snatani
@_snatani Год назад
very useful this series
@slangger2032
@slangger2032 Год назад
hello, bhaiya aapki videos best hain please nodejs aur express js pe bhi series ka sochiye
@LogicLegendz
@LogicLegendz Год назад
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
@md.sameershahzada2423
@md.sameershahzada2423 Год назад
very smooth explaination
@akashk2992
@akashk2992 Год назад
bahut mja aa rha h sikhane me
@a833
@a833 2 месяца назад
Thank you. Well define
@user-ou3kx7hf4sx
@user-ou3kx7hf4sx 6 месяцев назад
this video cover a part of crud update he is updating a value in object for example if you wanna change email of your in js then you can do it dynamically using input tag
@itzneeraj06
@itzneeraj06 17 дней назад
sir need a more detailed video 🙌
@meetchanchad129
@meetchanchad129 8 месяцев назад
When the topics are really tough, Hitesh sir makes it easy and makes it understandable. ☕&
@nbugdev
@nbugdev 5 месяцев назад
great sir
@akashk2992
@akashk2992 Год назад
sir mai daily lecture apka dekhta hu aur js sikhata hu
@user-hg1rz6qh5b
@user-hg1rz6qh5b 9 месяцев назад
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 .
@shubhojeetbera09
@shubhojeetbera09 8 месяцев назад
Concept clear💡
@parth_virani_official
@parth_virani_official 9 месяцев назад
#king's explanation ❤
@sky_9460
@sky_9460 10 месяцев назад
Nice Video
@RahulSharma-wz6yv
@RahulSharma-wz6yv 7 месяцев назад
thanks for the videos😃😃
@sayansadhukhan9251
@sayansadhukhan9251 4 месяца назад
Thanks a lot sir
@KrunalsinhVaghela-h7g
@KrunalsinhVaghela-h7g 10 месяцев назад
hello Hiteshbhai ,,, why below output is not same if functions are non-primitive data type? function sum2(val1, val2){ return val1 + val2 } function sum3(val1, val2, val3) { return val1 + val2 + val3 } let sum = sum2; let addFun = sum; sum = sum3; console.log(sum.toString()); console.log(addFun.toString()); //output //function sum3(val1, val2, val3) {return val1 + val2 + val3} //function sum2(val1, val2){return val1 + val2}
@VikashSingh-hc6zo
@VikashSingh-hc6zo 10 месяцев назад
function sum2(val1, val2){ return val1 + val2 } function sum3(val1, val2, val3) { return val1 + val2 + val3 } let sum = sum2; let addFun = sum; sum = sum3; console.log(sum.toString()); // get your function called console.log(sum(22,22,22).toString()); // function called and arguments passed var final = sum(22,22,22).toString(); // function called and passed into final variable console.log(final) // output 66 console.log(typeof(final)) // string // for addfun // let addFun = sum; // let sum = sum2; // means addFun = function sum2(val1, val2){ return val1 + val2 } console.log(addFun(22,22).toString()); // return 44 but in string // call your functions and then apply string method // as functions are stored in variable but not being called so the variable get all the syntax of the function ..... console.log(sum) but u never call sum ..... sum has the sum 2 function so sum will print you all the syntax of the sum 2 function if you do sum = sum2(); then you will get the sum2 function value to sum variable // and the non primitive datatype directly gives u the address of the original variable or function so when ever you make any assignment it goes reflected to original variable or function . you make many swaps but at the end your main or original function is going to affect.
@KrunalsinhVaghela-h7g
@KrunalsinhVaghela-h7g 10 месяцев назад
@@VikashSingh-hc6zo I got it bro,,,, I directly swap main functions. If I assign any function to variables and any change happen to main function's prototype then we got changes reflected on all variables
@KrunalsinhVaghela-h7g
@KrunalsinhVaghela-h7g 10 месяцев назад
@@VikashSingh-hc6zo thanks
@harshkumar9089
@harshkumar9089 11 месяцев назад
👍👍👍👍👍
@pranjalgogoigaming-1209
@pranjalgogoigaming-1209 10 месяцев назад
GREAT EXPLANATION
@usama5619
@usama5619 11 месяцев назад
thanks itne ache content k leay !
@rajeshhaldar2179
@rajeshhaldar2179 Год назад
Sir g espe thoda aur deep me video bnaeye....intrasting and important v h...please.
@arindamsaha1929
@arindamsaha1929 Год назад
oho tatprya word sunke maza aya gaya sir 😀
@programmingholic
@programmingholic Год назад
Easy sir thanks for sharing.
@void-9
@void-9 7 месяцев назад
OG teach in the house
Далее
Strings in Javascript | chai aur #javascript
22:44
Просмотров 210 тыс.
Pointers and dynamic memory - stack vs heap
17:26
Просмотров 1,4 млн
Data types of javascript summary | chai aur #javascript
18:02
JavaScript Memory Leaks and How To Fix Them
14:58
Просмотров 26 тыс.
Stack vs Heap Memory - Simple Explanation
5:28
Просмотров 227 тыс.
How to be a 10x Learner
17:41
Просмотров 87 тыс.
Array in Javascript | chai aur #javascript
18:55
Просмотров 214 тыс.
How Does JavaScript Memory Management Works ?
12:37
Просмотров 12 тыс.
JavaScript: How It's Made
10:54
Просмотров 880 тыс.
Stack Data Structure | JavaScript
16:29
Просмотров 98 тыс.