Loops are useful for running a series of code multiple times. Even while using different variables. It is important to be careful when running loops and not create a infinite loop that will crash the browsers.