Quick video (4 minutes 30 seconds) defining what the difference is between asynchronous and synchronous programming. I show a specific PHP example for synchronous coding and then show a JavaScript for an asynchronous example.
Asynchronous can be tricky and lead to pitfalls. Understanding this is critical to writing good Javascript.