We have used asynchronous programming to fetch data from multiple API's and sort it. One example was the asynchronous call on the Police data api.
Callbacks were used heavily, the example above shows the use of callbacks to print data onto the page.
As seen in the screenshots in #1 and #2, we used async/await which returned promises after awaiting the response.
Fetch was used for each api call in the project, the above example shows how it was used to make a http request to the Teleport api.
The project only used get requests so there wasn't a need to configure the options argument to make post requests.
Filter was used to 'filter out' the non matching results from the data fetched from the Teleport api based on what the user searched for.
The generate scores function shows how we used "getElementById" and "querySelector".
Examples of Dom nodes being added to the page in the screenshot above. This example shows how the police data was rendered onto the page, by creating div's and appending elements.
The example in #9 also shows how css classes were also added to dom nodes.
Consistent spacing was applied to the entire page with css "letter-spacing".
Console.log() was very helpfull when sorting the response data from the Police data api. As shown in the screenshot above, data was logged to the console at various points in the sorting algorythm, this gave an actual visual representation of what each function/method did to the data.