What You Need to Know About Asynchronous Programming in JavaScript

Danny Moerkerke
The Startup
Published in
11 min readSep 23, 2019

--

You can’t afford to get this wrong.

Photo by Toa Heftiba on Unsplash

Throughout my career I’ve been in a lot of job interviews, both as an interviewer and as a candidate. I’ve seen my share of candidates fall apart when asked to code asynchronous code using Promises and async/await.

Asynchronous programming is the bread and butter of JavaScript, yet so many developers fail to truly understand it for some reason.

Sure, they have worked with asynchronous code and they’ll recognise it when they see it. They know more or less how it works. But many fail to accurately reproduce it and understand all the essential implementation details.

Quite some developers I’ve interviewed are stuck on this level, which is actually sad.

If you want to be a serious JavaScript developer then asynchronous programming should be second nature. You should know this stuff like a baker knows bread.

Asynchronous programming can be tricky, but it’s not rocket science. There’s just some stuff that you need to know.

When you master these basics, you will have no trouble understanding the more advanced use cases and implementing them yourself.

What you already know

--

--

Danny Moerkerke
The Startup

I write about what the modern web is capable of, Web Components and PWA, creator of https://whatpwacando.today