1for (let step = 0; step < 5; step++) {
2 // Runs 5 times, with values of step 0 through 4.
3 console.log('Walking east one step');
4}
5
1if (expression) {
2 Statement(s) to be executed if expression is true
3} else {
4 Statement(s) to be executed if expression is false
5}
6
1// a loop is where you say i = 5 and if i < 6 {
2 // print("hdyugvryvg");
3// it means i = 5 and 6 is greater than 5 so it should print out hdyugvryvg 5 times
4//}
5
6// example
7
8for (let i = 0; i < 10000; i++) {
9 console.log('huduiduin 100000 times');
10}
11
12
13
14// dont try this put a lower number this nearly crashed my browser