Question 6
What will be logged on to the console, if the program written below is executed?
function outer(x) { let a = 2 function inner(y) { function innerMost(z) { return x + y + z + a } return innerMost } return inner}console.log(outer(19)(20)(30))Undefined
NaN
Will return a function reference
71