This repository is for the "Your First Program" example in the Introduction to Web Development textbook's How Programs Work chapter.
- Use your terminal to locate where you want to save this repository.
- Fork and clone this repository at the location you have selected.
- Open the project in your IDE.
- Explore the code provided. Read any commented instructions.
- Open a terminal and
cdinto your project directory. Remember to uselsto verify your location. You are in the project directory when you seehello.jsafter running thelscommand. - Once inside your project, type the command:
npm install. This will create a few new files and directories that contain dependencies your project may need. You will learn about this step more in the next lesson. - Once that is installed, type the following into the same terminal:
node hello. You should see the message you coded insidehello.jsappear in your terminal.
See the textbook for more instructions.
Troubleshooting: If you don't see any output, check where you are in the terminal. Make sure you can see the hello.js file when you run the ls command.