views:

72

answers:

1

I would like to know how local variables are allocated memory in javascript. In C and C++ local variables are stored on stack. Is it the same in javascript? or everything is stored in heap?

+4  A: 
T.J. Crowder