Mar 25: Arrays and Fetch
Learning Objectives
After today's class, you should be able to:
- Describe the array functions:
forEach(),find(),filter(),map(),reduce(). - Explain how data is requested from an API using
fetch(),then(), andcatch(). - Write a chain of function calls that fetch JSON data and display/filter the results.
Lesson Outline¶
Announcements [5 min]
- Calendar updates
- Project 2 – due in 3 weeks
- Make incremental commits over time
- Spend at least 1 hour this week (and next)
- Did everyone accept the GitHub invitation?
Array Functions [30 min]
- 22_Textbook_Array.pdf – by Connolly and Hoar
-
23_Array-Functions.pdf – by Kirkpatrick
Fetching Data [40 min]
- 24_Textbook_Fetch.pdf – by Connolly and Hoar
-
25_AJAX-vs-Fetch.pdf – by Kirkpatrick