6. Setup done !!!
Make sure you can see
1. Directories list on left panel
2. Working area on top right panel
3. Terminal area on bottom right panel
1
2
3
7. Create new “node” folder under root directory and “index.js”
file inside “node” folder
1
2
3
4
8. Double click index.js file on left panel to open the file
Type below syntax on index.js file
console.log(“my first javascript”);
9. Let’s run your first syntax on the terminal window
1. Type below command (after the $ sign) to check your current working directory
pwd
2. Press enter
The output is the directory where you are at now.
On sample above, we’re at /home/<username> which is the root.
Now, let’s go to “node” folder where your “index.js” file is at and execute it.
3. Type below command to go to “node” folder from root
cd node
4. Type below command to execute index.js
node index.js