//this varible as the name implies is the amount of wanted loops var amountOfLoops = 3 for (let i=0; i<amountOfLoops; i++) { //code to run each iteration }