# Simple curry add

Edit this question on GitHub### How would you make this work?

```
add(2, 5); // 7
add(2)(5); // 7
```

# Solution

```
const add = a => b => a + b
```

Front end Developer Interview Questions

Follow @carmonamarceloA list of helpful front-end related questions you can use to interview potential candidates, test yourself or completely ignore.

```
add(2, 5); // 7
add(2)(5); // 7
```

```
const add = a => b => a + b
```