DEV Community

Discussion on: Top Interview Questions for Backend Developers(Node)

Collapse
jazzbrown1 profile image
Jazz Brown

Hey thanks good article. But to be nitpicky, that is because async in JavaScript isn't really asynchronous, in most other languages you would expect async code to be on a different thread and be able to run simultaneously. And in JS all code runs on a single thread so I'd say single thread vs async is a bit out. It should be syncronous Vs async. And in the answer I would explain as jzombie said that even async code is on the single thread and can block other async functions from running.

Collapse
abhishekraj272 profile image
Abhishek Raj Author

Yes the question was in context of JS, because JS is single threaded, async language. So the question is what's the difference between the two.

Will modify the question as well as answer for better understanding.