JavaScript is only asynchronous in that it can make Ajax calls, for example. The Ajax call will pause, allowing other code to continue until the call returns (successfully or unsuccessfully), at which point the callback will run synchronously. At this point, no other code will be running.