# What is a currying function?

A currying function is a function that takes multiple arguments and turns it into a sequence of functions having only one argument at a time.

In this way, an n-ary function becomes a unary function, and the last function returns the result of all the arguments together in a function.

```
// Normal definition
function multiply(a, b, c) {
return a * b * c;
};
console.log(multiply(1, 2, 3));
// Output: 6
// Simple curry function definition
function multiply(a) {
return (b) => {
return (c) => {
return a * b * c;
};
};
};
console.log(multiply(1)(2)(3));
// Output: 6
```

### Further readings:

MEET THE NEW JSTIPS BOOK
Slay the JavaScript Interview.

You don’t need ten years of experience to land on your dream job. Use the 100 answers in this short book to build the confidence and skills to assess the JavaScript interview in your favorite startup or top tech company.

GET THE BOOK NOW