← the terminal · instructor

W25 // EXPRESSIONS, RETURN, PRACTICE

MAR 3 · Ch 10 Sec 4-6 · DUE: Function practice set

This week's deckPPTX

// RUN OF SHOW (8:45-10:15)
8:45

Stand-up: last week's deliverable graded, questions answered

9:00

This week's presentation

9:20

At the keyboard: guided type-along

9:45

Build time: assignment or project work

10:10

Close: commit, push, and preview next week's reading

// THE POINT THIS WEEK
Function expressions and anonymous functions. Return values. Practice.
// TALKING POINTS
Return hands back
  • A function without return does; a function with return answers
  • Store the answer: let total = addUp(cart)
  • Small functions that return values snap together like parts
Refactoring is a skill
  • Take working code and reshape it without changing what it does
  • Name the chunks honestly: verb plus noun
  • Refactored code reads like a sentence of verbs; that's the goal
> TREASURE HUNT WEEK

The Scope Heist opens today: student door · foreman key. Badge R. Run it in the build block or assign as the week's warm-down.

// LINKS