Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 523 Bytes

ex_52.md

File metadata and controls

21 lines (18 loc) · 523 Bytes

Exercise 52

  • Create the following folder/file structure:
/ex_52
  |-- index.html

index.html

  • Create a basic HTML document
  • Create a script tag on the document head element
  • Use fetch to call the following api: https://swapi.co/api/films/
  • You need to check that the response it's ok
  • Then convert the response from JSON string object to a JavaScript one
  • Finally show the following values for each film you get back:
title: %filmTitle%
episode_id: %filmID%
release_date: %filmReleasedDate%