Public Questions for tag [scope]

Ask Question

3 questions


0

Vote

4

Answers

35

View

How can I create or use a global variable in a function?If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in

0

Vote

6

Answers

30

View

ECMAScript 6 introduced the let statement.I've heard that it's described as a local variable, but I'm still not quite sure how it behaves differently than the var keyword.What are the differences?. Wh

Dec 31

0

Vote

2

Answers

28

View

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables, and the like), but who does not understand closures themselves?

Dec 31