Exploring Open Data

Housekeeping


1. Demo: randomIndex() utility function

Materials

2. Error Handling with try...catch

Materials

Slides: Handling Exceptions

3. Demo: Disney Character API

Materials

Breakout Activity: Find the array

You will be working in pairs. Using your knowledge of dot notation, and the randomIndex function created this morning:

  1. fetch a list of data from an open API;
  2. isolate the the array of items if it's deeply nested;
  3. using the randomIndex() function, console.log() (or output to the HTML page) a random item from the list.

4. ES Modules

Materials


Lab Time

  • Ash covering

Prep