Course contentsShow
JavaScript
Lesson 1343 of 2,72330. Async/AwaitPro lesson

Await Only Works in Async Functions

Using await outside an async function throws a SyntaxError; it requires the async context to function.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.