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"`.
Glossary: JavaScript Beyond the Basics
Using `await` directly at the top of a module file, outside any function. It works in ES modules, such as with `"type": "module"`.