for loop i in js how to get it code example Example: how to do a for loop in js for (let i = 0; i < 10; i++) { console.log(i); }