Week 4

Functions and Modularity

Intro

This week we’ll be learning more about one of the fundamental structural elements of programs: the function. In the same way that a variable declaration creates a name and binds it to a value, functions associate names with reusable blocks of code.

They allow you to organize your programs as they grow, make your intentions clear through descriptive names, and add a layer of abstraction between the high-level goals of your code and the low-level details that accomplish them.

Sync Up

Activities

Assignment