Lesson

Learn Javascript, Loops, while Loops, Codecademy

Lesson Summary

In this javascript tutorial, we learn about while loops. A while loop in javascript allows us to loop a variable number of times. This is great when we do not know ahead of time how many times we want our loop to run for. While loops in javascript can come in handy, in this lesson we make a type of guessing game that utilizes a random number generator to guess until it finds the desired card.

Share: