await fetch()

in index.js [30:37]


  await fetch("data/countries.json")
    .then(data => data.json())
    .then(json => countries = json);

  // Sort countries by name.
  countries.sort(function (a, b) {
    return a.name.localeCompare(b.name);
  });