Holiday Notice: We're away from Apr 30 to May 5, but our store is open 24/7! All orders placed now will be promptly processed and shipped on May 6.
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.