×
×
Correct!

Create a loop that runs as long as i is less than 10, but increase i with 2 each time.

let i = 0; while (i < 10) { console.log(i); i = i + 2; }

Not Correct

Click here to try again.

Correct!

let i = 0;
while (i < 10) {
  console.log(i);
   =   ;
}

  
  
  




×

Reset the Score?

This will reset the score of ALL 67 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 67 JS exercises.

Share your score:



Get Certified!

Take our JavaScript Developer Certificate to prove that you have fundamental knowledge of web development using JavaScript.