I just read the book "JavaScript: The Good Parts".
And there was an example in the Callback function part
bad way:
   request = prepare_the_request();
    response = send_request_synchronously(request);
    display(response);
recommended way:
request = prepare_the_request();
send_request_asynchronously(request, function(response){
    display(response);
  }):
The problem is i can't understand the difference and the effect taken by the bad way example.
Could anyone explain it in easy way?
 
     
    