JavaScript JavaScript Loops, Arrays and Objects Simplify Repetitive Tasks with Loops Create a while Loop

Dwayne Bynum
Dwayne Bynum
7,929 Points

error:Code took to long to run. Is anyone else getting this error repeatedly no matter what you submit?

no matter what i enter all that is returned is the code took to long to run, even if i enter nothing at all and click recheck work.

script.js
var count = 0;
while(count < 25){
      document.write(count);
      };

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 49,714 Points

Your count doesn't increment so the condition to run is always true