I’m probably trying to be too clever for my own good but I normally find that is what really tests my understanding.

I’ve returned using trinaries before but in this case I’m trying to do it recursively too.

Obviously I’m doing something pretty fundamentally wrong as vscode is giving me an error before I even run it. What stupid thing am I doing or not understanding?

```
my/silly/long/path/testboard.js:10
}
^
```

```
**Your code so far**
```

```
function sumAll(arr) {
return arr[0] === arr[1] ? arr[0] :
arr[0] > arr[1] ? arr[0] + sumAll([ arr[0]-1, arr[1]]):
arr[1] > arr[0] ? arr[1] + sumAll([ arr[0], arr[1]-1])
} // ignore the line count, THIS IS THE BRACE IN THE ERROR
sumAll([1, 4]);
```

**Challenge:** Sum All Numbers in a Range

**Link to the challenge:**