A remembered value

Take your time, follow the code and check your understanding.

The codeFunctions
function makeAdder(x) { return y => x + y; }
const addTwo = makeAdder(2);
console.log(addTwo(5));
Your answer3 min · no timer
What will the code print?

Show solution and explanation

The returned function closes over x, which remains 2 when y is supplied as 5.

7