Hi I just started intermediate algorithms and I’m not able to get even the first part of my code working. Please guide me to how to do this, I wrote my thought process as comments. As of right now Math.max is returning 5… Thanks

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

```
function sumAll(arr) {
let maxNum = arr.reduce((arr) => {
return Math.max(arr);
});
console.log(maxNum);
}
console.log(sumAll([5, 10]));
// find min
// find max
// loop from min to max
// return sum of all numbers between min and max including min and max
```

```
**Your browser information:**
```

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36`

.

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

**Link to the challenge:**