## JS and - fetch

- MDN: Using Fetch
- MDN: Arrow Functions
- Introduction to Arrow Functions

    /* mlb api;  sportId = 1 is major league */
      let urlTeams = "https://statsapi.mlb.com/api/v1/teams?sportId=1";

      document.addEventListener("DOMContentLoaded", function () {
        fetch(urlTeams)
          .then(response => response.json())
          .then(data => buildList(data.teams));
      });