Guidelines
- The more you participate the more you learn!
- Use Zoom’s Raise Hand feature
- Protect the Zoom chat!
- 🤯 The moment you are confused, raise your hand. You’re not alone!
- “I don’t know” is OK. Guessing is also OK! Mistakes => Learning!
- 📷 on 🙏
Coding Along (not required!)
- it can help
- it can also hurt 😬
- If you get stuck, take a screenshot and refocus on our discussion
- 💡Everything is recorded!
- Focus on high level understanding > implementation
- Comfort solving errors and fixing bugs will come with practice and experience
My Setup
VSCode extensions:
Lecture Goals
- Describe what functions are
- Regular functions vs arrow functions syntax
- Explain the difference between:
- Block scope
- Function scope
- Global scope
- Understand functions as first-class objects
- Identify higher-order functions
- Define callback functions and higher-order functions
Functions

() => {} vs function() {}

- syntax
- simplified vs fully featured
- interchangeable for now (hoisting! 😅)
- read more about differences (or feel free to bookmark for later)

Visualizing Scope

Callbacks and HOF

Higher Order Functions
- accept a function as a parameter
- (and/or) return a function
Let’s Code!
Function |
Parameters |
Behavior |
helloWorld |
none |
returns “Hello, world!” |
formatPrice |
price (float) |
returns the price like so: “$2.99” |
blurb |
book (obj) |
returns a string representation of the book with title author and price |
Callbacks and Iteration

Links!
Resource |
Location |
Description |
Starter Code |
GitHub Repo |
separate folder for each day’s lecture contains the code and any related assets |
Recordings |
Google Sheet |
Links to the starter & solution code for each days video along with the video link and a notetaking doc you can use for practice |