RE: What's wrong with this JS code? 01-08-2019, 06:18 AM
#2
If I'm not mistaken, the await can only work within an async function, hence the syntax error.
Try wrapping the await within the async function.
Try wrapping the await within the async function.












![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)