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