console arguments

Create a new text file on your machine called “food.js” with the following code:

Next, you can run the following on the command line:

Feel free to enter your favourite food instead! The program will take the argument and return it back to the command line.

node-fav-food

 

 

Questions