List of questions
Related questions
Question 95 - Certified JavaScript Developer I discussion
Refer to the code below: function foo () { const a =2; function bat() { console.log(a);
} return bar;
} Why does the function bar have access to variable a ?
A.
Inner function's scope
B.
Hoisting
C.
Outer function's scope
D.
Prototype chain
Your answer:
0 comments
Sorted by
Leave a comment first