1//This loop prints 3...9.
2
3for (let i = 3; i < 10; i++) {
4 console.log(i);
5}
6
7
8//This loop prints each of the letters C, o, d, and e on a separate line.
9
10let name = "LaunchCode";
11
12for (let i = 6; i < name.length; i++) {
13 console.log(name[i]);
14}
15
16/*The loop variable is typically used by the loop body, but this is
17not required. The following example is a valid for loop that prints
18"LaunchCode" 42 times.*/
19
20for (let i = 0; i < 42; i++) {
21 console.log("LaunchCode");
22}