Instructions

  1. Open the console and take a look at the data stored in the results variable.
  2. Type the word "results" in the console.
  3. Print the first element to the console (e.g. results[0]).
  4. Print the title of the first element to the console (using dot notation).
  5. Print image_url of the third element to the console.
  6. Print all of the titles to the console (use a for/of loop).
  7. Print all of the image_url properties to the console (use a for/of loop).
  8. Modify tester.js and change the tag that gets queried.
  9. Modify the doSomethingWithTheData function so that it appends an image to the #gallery element for each image_url. Use a template literal, e.g.:
    `<img src="${item.img_url}" alt="${item.title}">`