SIMPLE, LIGHT-WEIGHT, CROSS-PLATFORM AND POWERFUL CODE-EDITORS ARE:
Click on the link above and install one of the code editor in your system.
2) The second thing we want to install is Nodejs.
Download and install Node from Nodejs.org
After installing Node. We will see the preview of Node by running JS-code using Node outside of browser.
- Create a folder called
js-node(or any name is fine)
- Open this folder in
VSCode(or any editor that you have installed)
- Add new file
index.htmlin the folder.
Start writing code:
! (exclamation mark) and press tab. This will generate some basic HTML boilerplate.
Now, install live-server:
- Open the
extensionstab in VSCode.
- Search for
- Click on
install. Then restart VSCode.
Next, right click on
index.html file and click on
open with live server.
This will open up chrome or default browser and serve our web application page. It should show us empty page at URL
<h1>Hello World</h1> in our HTML file.
The browser will automatically refresh and display