When noodling around on Reddit's /r/learnprogramming, it's common to find misconceptions about how JavaScript works:
how does the compiler know to make it asynchronous?
how do I make this function a callback?
JavaScript is unusual because it is asynchronous by default and so requires a different programming model using callbacks and so on. That can be tricky to understand, which is why this question on Stack Overflow has nearly 6,000 upvotes.
Read more »