Good morning, having a little trouble understanding the difference between arr[i], [i], and i when for example saying
sum += arr[i]
sum += [i]
sum += i Your code so far

function sumAll(arr) {
sum += i
}
sumAll([1, 4]);

Your browser information:

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

Challenge: Intermediate Algorithm Scripting - Sum All Numbers in a Range

There are at least 4 different solutions in the hint section for this exercise, no need to worry about that.
Everyone who is doing this knows that they are learning for themselves and that there is nothing to gain by copying a solution without trying to solve it

Absolutely. When i do have to go and look at the solution, i don’t feel right moving on if i don’t understand why everything in the solution is there and how it works. There is no use moving on if we don’t learn anything from it haha