Javascript is event driven. Especially when you get into a lot of async/ajax stuff. That is why the api you are using provides the ability to specify a callback function. This does mean that often huge portions of your application logic will need to be orchestrated into functions.
↧