Answer:
The inner function forms a closure and has access to the x variable from the outer function, so it logs 10.
The inner function forms a closure and has access to the x variable from the outer function, so it logs 10.
You may be interested in:
Web Fundamental MCQs