Hi,

I’m struggling to understand this bloke of code from the Eloquent JavaScript (2018) - Chapter 3.

Wondering if anyone could help me understand what is going on here?

Thanks!

function multiplier(factor) {

return number => number * factor;

}

let twice = multiplier(2);

console.log(twice(5));

// → 10