How to make asynchronous API calls

How to make asynchronous API calls

I am often replying to Javascript programming questions about issues related to a lack of understanding of the asynchronous nature of most Javascript API and the proper way to write asynchronous code. Some documentation or examples found through search engines are outdated and not reflecting 2019’s language features and best practices. There are numerous good blog posts, like this one, to explain the concepts of asynchronous coding and even more to describe correct usage of the Promise pattern, I don’t want to write a “me too” article, but rather just focus one three code sample : the good, the bad and the ugly. Or should I say : the modern, the old and the antique ? ...

June 23, 2019 · 3 min · Seb