Write an infinite loop on paper, then fix it on paper. Never in the browser.
Count something repetitive at home (stairs, tiles) and write the for loop that would.
Print a 5x5 grid of stars in the console with nested loops.