It’s synchronous, but at times that can be harmful. For example, if a function takes a while to execute or has to wait on something, it freezes everything up in the meanwhile.
Then How Is It Asynchronous?
Open your console and type
window then press enter. You'll see everything the Web API has to offer.
To Explore More: http://latentflip.com/loupe