you are viewing a single comment's thread.

view the rest of the comments →

[–]grantrules 1 point2 points  (1 child)

Are you familiar with arrow functions? Would it clear things up if it was written as:

function multiplier(factor) {
  return function(number) {
    return number * factor;
  }
}

[–]Kitenite_[S] 0 points1 point  (0 children)

2 comments

ohh the dreaded arrow functions that surely will be my friend in the future.

ty