Bookmarks tagged [await]
How the new ‘Top Level Await’ feature works in JavaScript | by Kesk -*- | JavaScript in Plain English
https://javascript.plainenglish.io/javascript-top-level-await-in-a-nutshell-4e352b3fc8c8
Previously, in order to use await, code needed to be inside a function marked as async. This meant that you couldn’t use await outside any function notation. Top-level await enables modules to act…
- tags: javascript, await, top-level-await