Cannot see what more needs to be done here. Your help required and much appreciated
Your code so far
// 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 total = 0
for ( i = 0; i < myArr.length; i++) {
total += myArr[i];
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36.
Good find. With modern javascript, semi-colons are optional (and more and more, frowned upon). But it is possible that the FCC terminal kinda barfs on that one.
Hadn’t heard that! Missing semi-colons have been the bane of my coding existence (probably why I found the one above so quickly). I learned Python before JS, and had a heck of a time adjusting to “punctuating” my code. Glad to know others are frowning with me.