Sign in
Log inSign up

Does JavaScript use stack or heap for memory allocation or both?

pramod's photo
pramod
·Jul 25, 2017

Does JavaScript uses stack or heap for memory allocation or both, I know it uses heap for achieving closures. But does it also use stack. What are the use cases for what it uses and when it uses?