From w3schools.com, Experiment by Teeratus_R
Open DevTools (F12). Try setting a breakpoint inside the loop to see it trigger multiple times.