Basic JavaScript lessons bug


I just went through the Basic JavaScript curriculum.

2 lessons hang every time I submit the answer

Iterate with JavaScript While Loops
Iterate Odd Numbers With a For Loop

Can someone help to feedback to FCC?

Hmmm… Both work for me.

Are you using Chrome browser?

Are you receiving the checkmark confirmation on those two when you run the tests?

Can you post the code you submitted?

Yep, I’m using Chrome.
The pages hang after I click the ‘Run the Tests’ button.
Can’t even scroll to see the checkmark info below

I would guess they are hanging because you forced an infinite loop.

What does the code you typed in look like?

1 Like

The first guess is that you may have created an infinite loop.

Since FCC automatically run your code on page load, your browser will always be unresponsive.
To prevent that you can set disable the autorun with a run=disable url parameter.

Here’s an example:


No-Run URL:
1 Like

That’s it! Thanks for the prompt replies! All of you!


Sounds like you have created a situation where the test condition never becomes false.

Without seeing your code it would be hard to say how that happened. If you post your code someone will probably find your problem and lead you to a solution.

1 Like