How to write ‘Beautiful Life’ in Node.js ?
Example: In this article, we will learn how to write “Beautiful Life” in Node.js. Create a .js file like we have created the geeksforgeeks.js file and write down the following code in it.
Step to run file: Open CMD and go to the folder directory where the above file is kept, then run the following command.
Output: Open any browser and go to http://localhost:8080/, you will see the following output.