Easy
Understanding JavaScript Closure: How a Function Factory Creates a Multiplier Function
What will the following code output to the console?
1function multiplyBy(multiplier) {2 return function (number) {3 return number * multiplier;4 };5}67let double = multiplyBy(2);8let result = double(5);9console.log(result);