In order to retrieve information from Spotify using jOery’s AJAX method I would use jQuery.get(). Using this method will make a call to Spotify’s API to retrieve certain information to be displayed on the web page.
Promises in Javacript do the same thing as event listeners except in a more organized way. Event listeners don’t wait for things to excute before executing. With promises once something has succeeded the correct callback will be called back no matter how long ago the event took place. With promises you react to an outcome as oppossed to waiting for an exact timing of something to become available.
REST is a set of design principles that guide programmers with how to implement code into a website. It is incredibly powerful because it helps programmers build interfaces that can be used for almost any device and platform.