Loops
Learn how to repeat tasks using loops.
What you should understand
Read the lesson carefully, study the example, then use the editor below to experiment with the code yourself.
for (let i = 1; i <= 5; i++) {
console.log('Number: ' + i);
}
Output
See what your code produces.
Test your understanding
Choose the best answer.
Which structure is used to store multiple values?