What must the return value of myFunction be if the following expression is possible?
myFunction()();
the return of a function
What does this code do?
const wrap = value => () => value;
passes the first arrow function to wrap. then when you call wrap with a parameter it returns the parameter
In JavaScript, when is a function’s scope determined; when it is called or when it is defined?
when it’s defined
What allows JavaScript functions to “remember” values from their surroundings?
they remember their surroundings due to closures