Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 425 Bytes

async-programming.md

File metadata and controls

18 lines (12 loc) · 425 Bytes

Asynchronous Programming

This lesson will teach you about programming in an asynchronous environment and the pitfalls of this

Event loop review

  • Review concept of event loop call stack

Callbacks

  • Examples of mousedown/click/touch
  • Handling the context of the event in the callback

Error handling

  • try/catch/finally
  • callback( happy, err );

Handling async data (nesting functions)

  • ajax example