One of the very first programs you can write to make sure your version of Node is working is the "Hello World" program . There are two ways to create the program: in terminal or in your favorite code editor (eg Visual Studio Code, Vim, etc.). Make sure Node is installed on your machine to get started.
1.In your terminal, type node to start Node.
2. Enter console.log (" Hello World ") into the interpreter and press Enter.
3.Hello World will show the next line ! do not worry if it says "undefined" on the next line. it just means that we do not return anything that or a function.