Tell us what’s happening:
Your code so far
// Setup
var myArr = [ 2, 3, 4, 5, 6];
var total = 0;
for (myArr[0]; myArr.length<6 ; myArr+=2){
total += myArr;
}
// Only change code below this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Safari/537.36
.
Challenge: Iterate Through an Array with a For Loop
Link to the challenge: