DEV Community

Discussion on: Let's make a curry!

Collapse
 
jonrandy profile image
Jon Randy 🎖️ • Edited

It's more readable if you use arrow functions:

const generateMultiplier = multiplier => num => multiplier * num
Enter fullscreen mode Exit fullscreen mode
Collapse
 
saksham-malhotra profile image
Saksham Malhotra

I actually wanted to add a comment in between to assume that multiplying 2 numbers is a complex task