In this course, you’ll write a small JavaScript program that works out a pizza-party bill and the group-chat message.
Key Points
- On the way, you’ll give values names, calculate with them, and turn the results into readable text.
- The course project is a pizza-party bill. For three pizzas at $14 each, a $6 delivery fee, and six people, your program’s message reads:
Pizza party total: $48
Each person pays $8.
- You’ll build it in an on-site coding exercise. First, you’ll work out the numbers on paper. Then tests try your code on this party, a party of one, and parties they make up, and tell you why when a number’s off.
- You’ll also keep a game night score, split movie-night snacks, and plan your own weekend trip.
- You’ll practice in two places: on-site exercises that check your code, and short scripts you run with Node in VS Code.
- Coming from the first course of JavaScript Basics? You’re all set. Otherwise, make sure you can save a script, run it in the terminal, and log a value.
This course comes with sample code and a cheat sheet. The sample code has the files you’ll create in the lessons, plus a starter and a solution for each exercise. Keep the JavaScript cheat sheet open as a quick reference while you work:
Up first is Give Your Values Names With let.