DEV Community

Cover image for Memory Life cycle, Heap, Stack and Call Stack in JavaScript

Memory Life cycle, Heap, Stack and Call Stack in JavaScript

Alex Devero on November 02, 2020

There are topics in JavaScript you as a developer may not know. Knowing about these topics can help you write better code. Memory life cycle, heap,...
Collapse
 
cristinasolana profile image
Cristina Solana

Great article, thanks for sharing. Would be good to note that Object.assign does not deep clone.

Collapse
 
cernym43 profile image
Marek Černý

Thanks for the article! But the Object.assign creates a shallow copy and the same goes for spread syntax. If you want to create a deep copy you can use JSON parse/stringify but it works only if the object contains values that can be serialized (no functions, Maps, Date objects, etc).

Collapse
 
hayk1997 profile image
Hayk-1997

Hi
Or lodash Deep clone:)))

Collapse
 
mdhesari profile image
Mohammad Fazel

That was a huge informative topic, thank you!

Collapse
 
alexdevero profile image
Alex Devero

Thanks Mohammad.

Collapse
 
risto_matti profile image
risto-m ratilainen

Nice article about basics in modern programming languages, this case JavaScript point of view.

Collapse
 
kieran6roberts profile image
Kieran Roberts

Well explained article, thanks!

Collapse
 
alexdevero profile image
Alex Devero

Thank you Kieran.

Collapse
 
mjgs profile image
Mark Smith

Great article :)

Collapse
 
sukantpal profile image
Sukant Pal • Edited

Do you have any recommendations to learn about how V8 works? The documentation and codebase have very few architecture explanations.

Collapse
 
ap8900049 profile image
Agung

Great article, thanks.

Collapse
 
hayk1997 profile image
Hayk-1997

Great article 🤓🤓

Collapse
 
ridoansaleh profile image
Ridoan

Thanks for the article .. interesting topic for me as developer who has 3+ years experience.

If i found this in my early days as developer, i think i can't understand this.

Collapse
 
promiser profile image
parmeshwar rathod

heartly thank you brother!!

Collapse
 
biswas_srijeet profile image
srijeet biswas

Great article with illustrations, loved it ❤️

Collapse
 
lunaticprogrammer profile image
Varnit Sharma

Noice!