title: How does a single thread handle asynchronous code in JavaScript
body: <p>I know javascript runs on single thread. I also, know when we make an async ajax call using jquery, the code does not stop and continues execution serially. The response is handled by the callback. My question is how does the single thread does this? <strong>Does the thread handles the callback &amp; stop the further code execution when we get the response back</strong>?</p>