What must the return value of myFunction be if the following expression is possible?
myFunction()();
Another function.
What does this code do?
const wrap = value => () => value;
Returns the anonymous arrow function definition.
In JavaScript, when is a function’s scope determined; when it is called or when it is defined?
When it is defined.
What allows JavaScript functions to “remember” values from their surroundings?
Closure.