Download node to run our JS
check on the terminal for the latest version of node and npm
- JS on the client side : we access the DOM(document object model) in order to handle user interaction.
- JS on the server side : uses JS language to run servers and communicates databases.
Adding JS to HTML
could use local host:3000 to check the index.html
Open an index.js file and in Index.html:
console.log("hello from other file");
console shows “hello from other file”