- Install the current version of Node.js. The default installation options should work fine.
- After installing, make sure to close all instances of VS Code and other terminals (cmd, powershell, bash, etc)
- Fork the repository
- Clone your fork to your machine and open the folder in VS Code
- Create a file called
index.js
in the0. Hello World
folder - Type in
console.log("hello world)
in index.js and save the file - Open the terminal of VS Code. You will see that the terminal is currently in
IT114LM1W3-Introduction-to-JavaScript
but index.js is in the0. Hello World
folder - Change the present working directory to
0. Hello World
by typing incd "0. Hello World"
- The
cd
command means "change directory" - Tip: terminals have an auto-complete feature. just type in
cd 0
then press tab to quickly enter the folder name starting with "0"
- The
- Now that you are in the folder where
index.js
is located, you may runindex.js
by typing innode index.js
in the terminal. This will showHello World
in the terminal - Now that you are done with exercise 0, commit and push your changes
- Change the present working directory of the terminal to the folder of exercise 1
- You are currently in
0. Hello World
but1. Variables, Data Types, and Operators
is in the parent directory - Move to the parent directory by entering
cd ..
in the terminal - Move to the directory of exercise 1 by entering
cd "1. Variables, Data Types, and Operator"
in the terminal. See the tip in one of the previous steps.
- You are currently in
- Start doing exercise 1. Once you're done with exercise 1, follow the same process for the other exercises
Happy coding ๐