-1

I often hear something like "working knowledge of asynchronous programming" regards JavaScript in job descriptions etc, but I'm not sure what it mean - is it about callbacks and promises or is there something else to it? I'd appreciate if someone could explain this to me.

1 Answers1

1

Yes, effectively. More generally, it's about understanding the asynchronous nature of the most common JavaScript environments (web browsers, Node.js) and being fully versed in using callbacks, promises, async/await (in modern environments), etc. Understanding the closures-in-loops problem, why you can't return the result from an asynchronous call, that code that looks like it's below other code in a function may run earlier than the code apparently above it (because the code above it is in a callback), etc.

T.J. Crowder
  • 1,031,962
  • 187
  • 1,923
  • 1,875
  • I'd mention (DOM) event processing in general. – Bergi Jun 09 '19 at 12:21
  • @Bergi - It's just a special case of the general pattern. I don't want to turn the answer into an encyclopedia of asynchronous situations, just calling out the biggies. – T.J. Crowder Jun 09 '19 at 12:23