Remember, the
awaitkeyword is only valid insideasyncfunctions. If you use it outside of anasyncfunction's body, you will get aSyntaxError.
But that's not true.
Try this code in DevTools console, no errors, just result:
async function a(val) { return val; }
await a(10) // await is not inside async function
10
What's wrong with the code or docs?