Skip to content

Glossary: JavaScript Beyond the Basics

Top-level await

Using `await` directly at the top of a module file, outside any function. It works in ES modules, such as with `"type": "module"`.

Where the book teaches it

Related terms

async functionES modules