Join 36000+ teachers and students using TTIO.
Loops are handy, if you want to run the same code over and over again, each time with a different value. Learn more about JavaScript loops (there are different kinds) by using the following links and suggested learning and gifted and talented/extension videos.
https://www.w3schools.com/js/js_loop_for.asp
https://www.homeandlearn.co.uk/javascript/javascript_for_loops.html
https://www.tutorialrepublic.com/javascript-tutorial/javascript-loops.php
Suggested set of videos from the brilliant 'CodingTrain'
www.teachyourselfpython.com