11.Review: Browser Crashing For Simple Code



The browser keeps crashing despite having checked syntax for mistakes. I referenced the hints, yet it keeps crashing. The code is really simple, but it keeps crashing my browser.

for (var i = 1; i < 10; i++){
    console.log("I am "+i+" years old!");

var aye = true;
while (aye) {
    aye = false;

var lol = false;
do {
    lol = true;
} while (lol);

11. Review unexpected token

Change your do / while loop for this:

var lol = true;
do {
    lol = false;
} while (lol);


Thanks! The hint did say that the condition could start as false, but I guess not.