Skip to content

Again issue with "Iterate Through an Array with a For Loop" #7609

Closed
chandra90 opened this Issue · 1 comment

2 participants

@chandra90

Challenge Iterate Through an Array with a For Loop has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0.3 Waterfox/44.0.3.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

// Example
var ourArr = [ 9, 10, 11, 12];
var ourTotal = 0;

for (var i = 0; i < ourArr.length; i++) {
  ourTotal += ourArr[i];
}

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

// Only change code below this line
var myTotal = 0;
for (i = 0; i < myArr.length; i++)
{
    myTotal += myArr[i];
}


@raisedadead
Free Code Camp member

Hi @chandra90 ,

I am afraid your code is not correct. Please reach out to the JavaScript Help Chat for assitance.

Closing as not a site issue.

Thanks and happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.