Basic JavaScript - Iterate Through an Array with a For Loop

**Tell us what’s happening:**Why isn’t it working? I have watched the videos dozens of times, and looked at the help posts…

Your code so far

// Setup
const myArr = [2, 3, 4, 5, 6];

// Only change code below this line
const total = 0
for (let i = 0; i < myArr.length; i++) {
  total += myArr[i];  
}
  console.log(total);

Your browser information:

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

Challenge: Basic JavaScript - Iterate Through an Array with a For Loop

Link to the challenge:

Do you understand the difference between const and let?

Look at the FCC console in the bottom right pane. What is the error message?