When a user clicks on the button below, an onclick event listener will trigger a Javascript AJAX function that makes an http request to the server to get a file that contains a list of CDs.
A second function is ignited to format the response from the server, organizing all the file contents by artist and CD title into a table on this webpage.
Next, we will pitch a popular REST API to use on our website, Spotify Web API. The Spotify Web API will allow our users to search music genres, playlists, and tracks from Spotify's vast library of 100 million songs! A few technical steps will be needed to bring this API to life on our website.