Question: How does a function create a closure?
- It reloads the document whenever the value changes.
- It returns a reference to a variable in its parent scope.
- It completes execution without returning.
- It copies a local variable to the global scope.
Answer: The correct answer of the above question is Option B:It returns a reference to a variable in its parent scope.