async function. The await keyword is just legitimate inside async functions. Outside of an async function's body, you will get a SyntaxError if you use it .
With this web web web Page
An async function is a function declared because of the async…