for (let i = 0; i <= 5; i++) { console.log(i); }
Output
0 1 2 3 4 5
package main import "fmt" func main() { for i := 0; i <= 5; i++ { fmt.Println(i) } }
← if/else while→