for loop javascript print out 1-10 code example Example: javascript for loop that prints 10 times for (let i = 0; i < 10; i++) { console.log("Hello"); }