Your First Programs With Node (Summary)

When you started this course, you hadn’t written a line of code. Now you have scratch/snacks.js, a small movie-night calculator that runs on your own computer, and you can change it, run it again, and fix it when it breaks. That’s a real program, and it’s yours!

This last lesson starts with one more short task from memory, because working without the instructions open shows you what you’ve really got. After that, you’ll review what you can do now, with links back to each lesson, and see where the next course picks up.

Try It Once More on Your Own

Before you read any further, close the other lessons and give yourself about five minutes with VS Code. Work through these steps without looking anything up.

  1. Open your js-course folder and a terminal whose prompt ends in js-course.
  2. Create a new file in scratch, named after anything you like, such as pizza.js.
  3. Write one line that prints a message and one line that prints a calculation with a label.
  4. Write down the output you expect, then save, run, and compare the result with your prediction.
  5. Change one number, save, and run again.
  6. Delete a closing quote, save, run, and read the error. Then put the quote back, save, and run again to check the fix.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.