Top-level await allows you to use await outside of async functions in JavaScript

Top-level `await` is coming to JavaScript modules! You’ll soon be able to use `await` without needing to be in an async function. Read more

Similar