A function returning another function is correctly demonstrated as function outer() { return function() { alert("Inner"); }; }.
8.
What is the output of the following code? function makeAdder(a) { return function(b) { return a + b; }; } var add5 = makeAdder(5); console.log(add5(2));