await work in chrome console without async wrapper [closed]
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 8 months ago . I've read the MDN definition for await which is : "The await operator is used to wait for a Promise. It can only be used inside an async function." which works in the editor. However in the chrome console I wrote an async function then in the global execution I typed await functionName and that