mul(a)(b)(c)

EasyAmazon

Prompt

Write a JavaScript function called mul that multiplies three numbers using currying. Instead of taking all three arguments at once like mul(1, 2, 3), the function should be called one argument at a time.

mul(1)(2)(3); // Returns 6
mul(5)(5)(5); // Returns 125