I would appreciate if someone could give me feedback on my solution to the exercise Sum All Numbers in a Range

```
function sumAll(arr) {
let max = Math.max(arr[0], arr[1]);
let min = Math.min(arr[0], arr[1]);
let arrNumbers = []
for(let i = min;i <= max;i++){
arrNumbers.push(i);
}
let result = 0;
for(let i = 0;i < arrNumbers.length;i++){
result += arrNumbers[i];
}
return result;
}
```