3 ms·
Programming in an "event-based way" is a huge part of writing traditional JavaScript in the browser. You're handling user events, Ajax responses, the page load
by dionidium 16y ago
Programming in an "event-based way" is a huge part of writing traditional JavaScript in the browser. You're handling user events, Ajax responses, the page load itself. And JavaScript's first-class functions and closures are extremely well-suited to the task.
- scott_s 16y agoAh, yes, you are correct. Then consider for the sake of discussion that I said "asynchronous."