O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

Organizing code around reacting to events is a different way of thinking about how you write your code. To write code this way, you need to consider the events that can happen, and how your code should react. Computer science types like to say that this kind of code is asynchronous, because we’re writing code to be invoked later, if and when an event occurs. This kind of coding also changes your perspective from one of encoding an algorithm step-by-step into code, into one of gluing together an application that is composed of many handlers handling many different kinds of eve...


Cover of Head First JavaScript Programming


What is asynchronous code? blocks of codes that are executed in response to events and not necessarily sequentially.