Para o loop javactip
for(let i = 0; i < 5; i++) {
console.log("loop", i);
}
Homely Heron
for(let i = 0; i < 5; i++) {
console.log("loop", i);
}
for (i = startValue; i <= endValue; i++) {
// Before the loop: i is set to startValue
// After each iteration of the loop: i++ is executed
// The loop continues as long as i <= endValue is true
}