Stack and Heap memory in javascript

Sdílet
Vložit
  • čas přidán 21. 02. 2023
  • Visit chaicode.com for all related materials, community help, source code etc.
    github.com/hiteshchoudhary/js...
  • Věda a technologie

Komentáře • 199

  • @LearnerAbhi21
    @LearnerAbhi21 Před 8 měsíci +63

    //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.

  • @Talha_75
    @Talha_75 Před 10 měsíci +44

    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( ){ } )

  • @BitFire007
    @BitFire007 Před 4 měsíci +2

    "Hats off to Chai aur Code for transforming my coding experience. Clear, concise, and captivating!"

  • @iamkmsyed
    @iamkmsyed Před 5 měsíci +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!

  • @Anshuverma4674
    @Anshuverma4674 Před 4 měsíci +9

    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😀😇😇😇

  • @SounakSaha-nh5qm
    @SounakSaha-nh5qm Před rokem +16

    Thank you Sir for making the difficult concept extremely simple. God bless you.

  • @rabiafaisal558
    @rabiafaisal558 Před 9 měsíci +5

    Yeh different tha...Jo mein ny seekha.... shukr ha koi Essa teacher CZcams Py mil geya

  • @softheartpeople
    @softheartpeople Před 9 měsíci +1

    simple precise short and meaningful. Thanks mentor.

  • @baitullahkhan5030
    @baitullahkhan5030 Před 11 měsíci

    the best programming teacher ..from Pakistan ❤

  • @devDiver
    @devDiver Před 7 měsíci

    I was confused when I tried express js. now cleared. Thanks a lot 🙏🙏🙏

  • @shailenderjaiswal1685
    @shailenderjaiswal1685 Před 9 měsíci +4

    calm and peaceful and enjoyful explanation
    mjaa aa gya ek dm

  • @samadsiddiqui5925
    @samadsiddiqui5925 Před 9 měsíci +1

    Amazing video! Well explained stack and heap memory

  • @RajeevTutorials-ii4jc
    @RajeevTutorials-ii4jc Před 8 měsíci +5

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

  • @I_am_Jisu
    @I_am_Jisu Před rokem +1

    Explanation was great ,too easy to understand ,Subscribed😁

  • @yogeshkumarpatil591
    @yogeshkumarpatil591 Před 6 měsíci +2

    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.

  • @ajaysinghrathour8622
    @ajaysinghrathour8622 Před 11 měsíci +11

    it's not free, It's most valuable class for us

    • @chaiaurcode
      @chaiaurcode  Před 11 měsíci +13

      Fir share krke linkedin pe tag to nhi aaya sir 😁

    • @ajaysinghrathour8622
      @ajaysinghrathour8622 Před 11 měsíci

      @@chaiaurcode will do it sir. Thank you for your reply.

    • @jayprakashyadab
      @jayprakashyadab Před 3 měsíci

      @@chaiaurcode karne ke bad ap kuch repost ey like bhi tho nahi karte mai apko kita tag karta hu

  • @srijareddy1088
    @srijareddy1088 Před 22 dny +1

    Clear and concise ,thankyou.

  • @anmol.rajput.2
    @anmol.rajput.2 Před 26 dny +1

    pehli baar aaya is channel pe. sir! your style of teaching is another level🔥. i forgot all the other channels.....

  • @dilipjaiswal3038
    @dilipjaiswal3038 Před rokem

    sir Ur teaching style is great 👍 itna easily samjha diye ...

  • @samuelfernandes3301
    @samuelfernandes3301 Před 7 měsíci

    Literally nobody taught this on entire CZcams in javascript your the first ❤

  • @once-upon-a-time-7
    @once-upon-a-time-7 Před měsícem

    is se zda asan mane aj tak ni smjha topic sara smjh a gya tusi great oo ustad ji love you from pakistan

  • @adarshmaddheshiya4413
    @adarshmaddheshiya4413 Před 5 měsíci

    One of the best explanation on Stack and Heap memory ❤

  • @enxzy
    @enxzy Před 8 měsíci +3

    This course is best as compared to any other paid courses out there! 👽Hard work is appreciated by heart

  • @believeyou8530
    @believeyou8530 Před 9 měsíci +7

    😍 Love the way you simplified. If teaching is an Art you are Leonardo da Vinci.

  • @Yasinkhan-tm8jv
    @Yasinkhan-tm8jv Před 7 měsíci

    getting in-depth knowledge. Thanks sir

  • @syedmaji
    @syedmaji Před 10 měsíci

    asaanni say seekh lia .... zabardast. learned after a long time in a simple way. Great Job

  • @namansharmacsb1063
    @namansharmacsb1063 Před 3 měsíci +1

    9:45 sir topic difficult hai
    but apne esko easy way mai explain krke easy topic bana diya hai
    thank you and keep uploading

  • @ravishbisht502
    @ravishbisht502 Před 8 měsíci +1

    Omg it was too easy i made it too difficult to understand. Thank u so much❤

  • @rendevous9253
    @rendevous9253 Před 8 měsíci +1

    Bohut sundar hindi kaha apne aaj. 👏👏

  • @Daani213
    @Daani213 Před 2 měsíci

    😀😀😀 best and easy way to explain. that is best one playlist .

  • @JohnWick-ds5wb
    @JohnWick-ds5wb Před 11 měsíci +2

    thank you bhaiya for giving us ur precious time and attention.

  • @vivektiwari6200
    @vivektiwari6200 Před rokem +5

    was confused in this concept from FSJS bootcamp 2, now cleared, thanks sir,

  • @zainulkhan8381
    @zainulkhan8381 Před 4 měsíci

    Best explanation of stack and heap keep it up !

  • @TOONSSTATION
    @TOONSSTATION Před 4 měsíci

    Easily Explained.
    Thanks.

  • @heisenberg6461
    @heisenberg6461 Před rokem +15

    Quality content is always underrated ❤️
    #ThankYouHiteshSir

  • @user-lc7qs7gy5d
    @user-lc7qs7gy5d Před měsícem

    5:37 Really amazing , before the code running got the things !! Great Sir !

  • @user-mo1sy5ck7r
    @user-mo1sy5ck7r Před 4 měsíci

    best Series ALL OVER UNIVERSE, thank you Sir 🙏

  • @shubham_srt
    @shubham_srt Před 2 měsíci

    such a good explaination, thank you

  • @muhammadyasir2275
    @muhammadyasir2275 Před měsícem

    i am from pak.. you nailed this concept in my mind man

  • @namansharmacsb1063
    @namansharmacsb1063 Před 3 měsíci

    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

  • @hmmmmokayidc
    @hmmmmokayidc Před měsícem

    such a good explaination🔥🔥

  • @techindepth371
    @techindepth371 Před měsícem

    mind blowing. It is so easy to learn from you sir. Cont day 2

  • @niteshkushwaha9493
    @niteshkushwaha9493 Před 5 měsíci +1

    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.

  • @masterju2648
    @masterju2648 Před rokem

    Really sir you are really the best teacher

  • @Instrumentation010
    @Instrumentation010 Před 7 měsíci

    You made it very easy to understand

  • @usama5619
    @usama5619 Před 9 měsíci

    thanks itne ache content k leay !

  • @muhammadishaque4818
    @muhammadishaque4818 Před 6 dny

    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 CZcams videos, but I was unable to understand this concept, thank you so much,

  • @ayushyadavz
    @ayushyadavz Před 2 měsíci

    A little bit complex but after watching this video for 3 to 4 times, I got this topic of Stack & Heap. 🤗

  • @Soulcraft_with_Pritha
    @Soulcraft_with_Pritha Před 6 měsíci

    Very well explained! 👏👏

  • @ByteNinjas69
    @ByteNinjas69 Před 9 měsíci

    Kya baat hai Sir Ap ki....very well

  • @Rajveer__singhhhh
    @Rajveer__singhhhh Před 9 měsíci

    I think this is best channel on CZcams

  • @abhishekgautam9767
    @abhishekgautam9767 Před 9 měsíci +1

    You are great teacher

  • @feelalive440
    @feelalive440 Před měsícem

    ab jaake kuch baat bani thank you bro

  • @priyadarshiranjan5181
    @priyadarshiranjan5181 Před měsícem +2

    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

  • @guitargig123
    @guitargig123 Před 4 měsíci

    Very complex concept easily explained

  • @sumitsinha995
    @sumitsinha995 Před 6 měsíci

    Heap memory wala bahut interesting tha bhaiya...

  • @user-kq5pk8kr8c
    @user-kq5pk8kr8c Před 8 měsíci +4

    "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! 🚀🔥"

  • @akashthoriya
    @akashthoriya Před 10 měsíci

    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

  • @RahulKumar-ve3lm
    @RahulKumar-ve3lm Před 2 měsíci

    I DONT KNOW WHY I SUBSCRIBED YOUR CHANNEL, BECAUSE I NEVER SUBSCRIBED ANY CHANNEL. I THINK YOU ARE THE BEST, THAT'S WHY.....THANKS

  • @md.sameershahzada2423
    @md.sameershahzada2423 Před 10 měsíci

    very smooth explaination

  • @user-hj1sz7df2f
    @user-hj1sz7df2f Před 9 měsíci +1

    #10 tutorial thanks for this tutorial 🙂

  • @_snatani
    @_snatani Před 9 měsíci +1

    very useful this series

  • @gauravsrivastava17
    @gauravsrivastava17 Před 16 dny

    So simple to understand

  • @shubhojeetbera09
    @shubhojeetbera09 Před 6 měsíci

    Concept clear💡

  • @sagarxjadhav
    @sagarxjadhav Před 5 měsíci

    yesssss just completed 10 videos with proper understanding

  • @qazimtahir
    @qazimtahir Před 2 měsíci

    Excellent 😀

  • @nikhatansari3310
    @nikhatansari3310 Před 8 měsíci +2

    Thank you so much sir 😊

  • @Aditya.Santra
    @Aditya.Santra Před rokem

    Amazing Video 😃

  • @ankushladani496
    @ankushladani496 Před rokem

    Dhanyawad guruji 🙏

  • @razashah7881
    @razashah7881 Před 2 měsíci

    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.

  • @slangger2032
    @slangger2032 Před 10 měsíci

    hello, bhaiya aapki videos best hain please nodejs aur express js pe bhi series ka sochiye

  • @parth_virani_official
    @parth_virani_official Před 7 měsíci

    #king's explanation ❤

  • @programmingholic
    @programmingholic Před rokem

    Easy sir thanks for sharing.

  • @RahulSharma-wz6yv
    @RahulSharma-wz6yv Před 5 měsíci

    thanks for the videos😃😃

  • @rationalindianguy
    @rationalindianguy Před rokem +4

    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  Před rokem

      Consistency aa jaye 1 baar is channel pe, fir speed b aa jayegi 😁

  • @hardikluhar4738
    @hardikluhar4738 Před 10 měsíci

    Great Info

  • @sayansadhukhan9251
    @sayansadhukhan9251 Před 2 měsíci

    Thanks a lot sir

  • @pranjalgogoi-1209
    @pranjalgogoi-1209 Před 7 měsíci

    GREAT EXPLANATION

  • @akashk2992
    @akashk2992 Před 9 měsíci

    bahut mja aa rha h sikhane me

  • @nbugdev
    @nbugdev Před 3 měsíci

    great sir

  • @user-gf1fu2sc1l
    @user-gf1fu2sc1l Před rokem

    amazing video🤗🤗🤗🤗🤗🤗

  • @arindamsaha1929
    @arindamsaha1929 Před rokem

    oho tatprya word sunke maza aya gaya sir 😀

  • @jiteshtechbeast
    @jiteshtechbeast Před rokem

    This man is ❤❤❤

  • @AGELESS_RAHUL2001
    @AGELESS_RAHUL2001 Před 7 měsíci

    thank you so much

  • @soumendasrollno.3596
    @soumendasrollno.3596 Před 10 měsíci

    osm simple example

  • @sky_9460
    @sky_9460 Před 8 měsíci

    Nice Video

  • @meetchanchad129
    @meetchanchad129 Před 6 měsíci

    When the topics are really tough, Hitesh sir makes it easy and makes it understandable. ☕&

  • @void-9
    @void-9 Před 4 měsíci

    OG teach in the house

  • @awaisahmad8935
    @awaisahmad8935 Před 23 hodinami

    copy in stack memory and reference in heap , a little more example needs to clarify it, so we demand more

  • @vishalpal6202
    @vishalpal6202 Před 2 měsíci

    awesome

  • @akashk2992
    @akashk2992 Před 9 měsíci

    sir mai daily lecture apka dekhta hu aur js sikhata hu

  • @alizaman8407
    @alizaman8407 Před 3 měsíci

    Amazing

  • @ashishkumarranjan808
    @ashishkumarranjan808 Před 10 měsíci

    Great

  • @17rutvijamali79
    @17rutvijamali79 Před 4 měsíci

    Thank you

  • @SatyamX635
    @SatyamX635 Před 10 měsíci

    Understand ❤

  • @ujawaltiwari2157
    @ujawaltiwari2157 Před rokem

    Already shared sir ... Ab kitna kru bahut kiya share aage Achha lgega toh share krunga 🤪

  • @VishalSharma-rn7mt
    @VishalSharma-rn7mt Před 11 měsíci

    Awesome

  • @BABABENNETT
    @BABABENNETT Před 4 měsíci

    hitesh sir op

  • @Apna-Program
    @Apna-Program Před 6 měsíci

    WOOWW🥰🥰🥰

  • @oqant0424
    @oqant0424 Před 6 měsíci

    Literally u made it a halwa!!!!