Skip to content

Lesson 5 (Functions)

Courtney Frey edited this page Apr 13, 2022 · 2 revisions

Lesson 5: Functions

In the prep work for this lesson, the students learned:

  1. What a function is.
  2. What a parameter is.
  3. What an argument is.
  4. How to write a function with any number of parameters.
  5. How to call a function.
  6. What scope is and how it affects functions.

Announcements

  1. Check with your class Candidate Engagement Manager for any announcements!

For Part-Time Students:

  1. If the due date for the first graded assignment has NOT already passed, remind students of the due date for the first graded assignment.
  2. The grade for your first graded assignment will appear in Canvas.
  3. Graded Assignment #2 is open! Remind students that the key to getting the assignment done is to read through everything carefully and start on what you can do as soon as possible. In class, read through the instructions with your students and highlight what they are capable of doing after this class.

For Full-Time Students:

  • Welcome to Days 5, 6 & 7!
  • Day 5:
    • Lesson 5: Prep work in morning.
    • Graded Assignment 1: Introduce and Work Time in afternoon.
      • Part 1 due at end of Day 5.
      • Parts 2 & 3 due at end of Day 8.
  • Day 6:
    • Assignment 1 work time in morning.
    • Lesson 5 lecture and studio in afternoon
  • Day 7:
    • Assignment 1 Work day.

Large Group Time (Instructor)

Lesson 5 Topics That Require Careful Attention

  1. Conversation starters:
    1. In a student's own words, can they explain what a function is?
  2. When is undefined returned?
  3. Live coding examples covering scope and how it impacts functions.
  4. Functions calling other functions.
  5. Q & A for any issues with the chapter exercises.
  6. Emphasize live coding. In particular, consider creating some function tasks to give to the students as "starters" or to use in walkthroughs.

Studio (TF Notes)

Lesson 5 Studio

  1. Reminder: the studio is broken into parts for a reason! Many students may read the initial paragraph and want to jump right in, but that would be doing themselves a disservice.
  2. This is a problem that is possible with an inefficient, brute force solution. Encourage students who take that route to take a step back and seek out a more elegant solution.