constants.js >API_URL
display.js > display score on screen
fetch.js> getData from API
Created a new game by using the API.
Implemented the form "Submit" button (sending data to the API).
Implemented the"Refresh"button (receiving data from the API and parsing the JSON).
Used arrow function
Usedasync and await JavaScript features to consume the API.
Created new files :1234:
Created a new
game
by using the API. Implemented the form "Submit" button (sending data to the API). Implemented the"Refresh"
button (receiving data from the API and parsing the JSON). Used arrow function Usedasync
andawait
JavaScript features to consume the API.