When you are getting data from an API you usually use .then() .catch() methods
but there's a better way, instead we could use the Async/Await syntax so the code looks synchronous and a lot easier to read with no callback functions
#shorts #javascript #webdevelopment #asyncawait