Page is unresponsive on `Iterate with JavaScript Do...While Loops`

Tell us what’s happening:
I am experiencing page unresponsive any time I click Run the test


Your code so far


// Setup
var myArray = [];
var i = 10;

// Only change code below this line.
do{
  myArray.push(i);
  i++;
} while(1 < 11)

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Link to the challenge:

As 1 is always less than 11 you have an infinite loop

You created an infinite loop.

Your condition:

while(1 < 11)

will always be true ( perhaps you wanted i).

Visit this page to know how to recover an unresponsive page:

hope it helps :+1:

Yes @Marmiz, it helps. :+1: