loop js w3schools code example Example: loop javascript // infinite for loop for(let i = 1; i > 0; i++) { // block of code }