**Tell us what’s happening:**

I was hoping to be able to solve this one with some sort of currying behaviour but I failed (instead I used the rest operator to solve it). If anyone can message me a possible solution with currying I would be grateful for the opportunity to learn!

**Your code so far**

```
function addTogether(x, ...arg) {
if (arg.length == 0) {
if (Number.isInteger(x)) {
return function (y) {
if (Number.isInteger(y)) {
return x+y;
}
};
}
} else {
if (Number.isInteger(arg[0]))
return x + arg[0];
}
}
addTogether(2,3);
```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36`

.

**Link to the challenge:**

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional