Level 1M11Lesson 11.1

beginner30 minby DevFox

What asynchronous code is and why it exists

Learn why some steps are waits and how a program can wait without standing still: synchronous code runs line by line, asynchronous code starts a wait and goes on. Use setTimeout to run a callback later, see why three timers take 3 seconds rather than 6, and why a value a callback sets must be used inside it.

  • Fundamentals
  • TypeScript
What asynchronous code is and why it exists. Read this lesson at .