Agenda

  1. Warm-up: Predict the Output — one function prints, one returns, and only one of them is useful twice
  2. Investigate: change a variable inside a function, then ask the rest of the program what it thinks happened
  3. Compare and name it: Parameters, Returns, and Scope
  4. Practise: the rest of Functions Practice
  5. Log it in your Code Journal

Things to do before our next class

  • Journal: one function you wrote today that a completely different program could use, unchanged.