Answer the question
In order to leave comments, you need to log in
Where are local variables stored in javascript?
I know that when a global variable is created in javascript, it becomes a property of the window object and can be accessed through it accordingly: window.var. I just can't figure out what properties become local variables declared in the body of the function? Where are they stored and how can they be accessed?
Answer the question
In order to leave comments, you need to log in
Of course, they are written in a single hash of this scope. However, as far as I know, this area is not represented as an accessible object.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question