(function(x, f = () => x) { var x; var y = x; x = 2; return [x, y, f()]; })(1)
[2, 1, 1]
[2, undefined, 1]
[2, 1, 2]
[2, undefined, 2]
Correct Answer : A
What is a closure?
A function with no return value is called
What is the fundamental rule of lexical scoping?