function makeMultiplier(x){
return function(y) {
return x * y;
}
}
var by10 = makeMultiplier(10);
console.log(by10(7));
How is it possible to pass in two parameters when make multiplier only accepts one? I'm unsure as to how this syntax is working.