Please enable JavaScript to use CodeHS

CodeHS Glossary


For Loop JavaScript

A for loop lets us repeat code a **fixed number of times**. ``` for character in "hello": print character # will print each letter in the world "hello" until it reaches the last one, "o" ```