๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—Ÿ๐—ผ๐—ผ๐—ฝ๐˜€: ๐—™๐—ผ๐—ฟ ๐˜ƒ๐˜€ ๐——๐—ผ ๐—ช๐—ต๐—ถ๐—น๐—ฒ

You need to run code multiple times. Loops do this work for you.

The For Loop Use this loop when you know the count. It uses three parts.

All three parts are optional. Skip the condition and the loop runs forever. This crashes your browser. Use a break statement to stop it.

The Do While Loop This loop runs the code first. It checks the condition second. Your code runs at least once. The loop stops when the condition is false.

Source: https://www.w3schools.com/js/js_loop_while.asp Optional learning community: https://dev.to/madhanraj/for-loop-and-do-while-loop-in-javascript-4i8b