1console.log(0);
2console.log(1);
3console.log(2);
4console.log(3);
5console.log(4);
6// and so on...
7//or//
8//using for loop iteration:
9
10for (let i = 0; i <= 50; i++) {
11 console.log(i);
12}
13
14
15//A for loop always contains the following components:
16for (initial expression; loop condition; update expression) {
17 loop body
18}