Hey all!Hope you all are doing well.
- At first you need to install NodeJS in your Windows/Macbook. You can install it from here: https://nodejs.org/en/
- Create a new folder and open it in VS Code
- After completing the code save the changes that you made
3.Open the terminal in VS Code.
Now , move to the current directory in which you are there using following command.
You have moved to the directory in which your JS code is present.
4.Type the following command in VS code terminal to view the output of your code.
Yes!!! That's it. By following the above steps you can view your output without the need of HTML file.