For whatever reason, when I try to open the “Iterate Through an Array with a For Loop” Lesson in the Basic JavaScript Course, the page loads and almost instantly crashes.
The previous lessons and next lessons work fine.
For whatever reason, when I try to open the “Iterate Through an Array with a For Loop” Lesson in the Basic JavaScript Course, the page loads and almost instantly crashes.
The previous lessons and next lessons work fine.
Hello there, If you still have this problem try to close the website and reopen it and make sure there are no extensions that modifies the content working when you try to open the lesson.
If that does not work with you, try changing the browser
Chrome seems to be the problem, it is working fine on Edge. Thank you!
Please post your code so we can see what’s up!
Please post your code so we can see what's up!
[/quote]
Here is the code:
// Setup
const myArr = [2, 3, 4, 5, 6];
// Only change code below this line
let total = 0;
for (let i = 0; i < myArr.length; i++) {
let c = myArr[i];
myArr.push(c)
}
console.log(myArr)
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.