Skip to main content

Day 2 - Numbers, Math and Errors

Housekeeping

  • CPNT 260 Assignment 4 release after lunch

1. Declaring and assigning variables

Slides - declaring and assigning variables

Demo: Math in Javascript

Materials:

Activity: Tip Calculator Refactor

In pairs, add functionality to the Tip Calculator:


2. Handling Errors

Slides - handling errors

Activity: Fixing errors

In pairs, complete the following activities:


3. Lab Time

  • Finish activities from this morning;
  • Assignments;
  • Exercises: Javascript basics on Free Code Camp

Prep

System Requirements

Reading list

MDN: