Day 2 - Numbers, Math and Errors
Housekeeping
- CPNT 260 Assignment 4 release after lunch
1. Declaring and assigning variables
Demo: Math in Javascript
Materials:
Activity: Tip Calculator Refactor
In pairs, add functionality to the Tip Calculator:
2. Handling Errors
Activity: Fixing errors
In pairs, complete the following activities:
- Beginner: Bug hunt - syntax errors
- More advanced: Fix syntax errors in adding machine
3. Lab Time
- Finish activities from this morning;
- Assignments;
- Exercises: Javascript basics on Free Code Camp
Prep
System Requirements
- Install ES Lint for VS Code, or similar extension.
Reading list
MDN:
Recommended exercises
- Javascript basics: Exercises 1-8
- Start: Comment Your JavaScript Code
- Complete and Stop (or not): Understanding Case Sensitivity in Variables