Closures

1/5

Access variables defined in the current function's scope and the scope of any parent function or the global scope.


Which variables are accessible from the comment?

let foo = 1; function outer() { let bar = 1; function innerA() { let baz = 1; } function innerB() { let qux = 1; // which variables are accessible here? } }

Multiple Choice