Higher-order function returning a function
Write a
multiplyBy(factor) factory. It returns a brand new function that multiplies its argument by the captured factor.Premium
JavaScript
Console