I have tried it but it does not return 210
function katatau() {
const oneToTwenty = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
let newArray = 0
for (let i = 0; i <= oneToTwenty.length; i++) {
newArray += oneToTwenty[i]
} return newArray
}
<not<=because arrays start at index[0]- e.g. if you only have one value in an array, it's at index 0, and the length is 1 ... so, array[1] would be undefined