for(let i=0; i<= 10; i++){ console.log(i); }After finishing the code, save the file. Then, open a command line and navigate to the folder where the script file is located. After this, simply write the following command on the command line and hit enter:
node test.jsYou should get an output similar to figure 1. As can be seen, the numbers between 0 and 10 were printed, as expected.