4 ms·
Async/await requires passing a promise to await. If you read the documentation for async/await, it starts with: "These features basically act as syntactic sugar
by BenoitEssiambre 6y ago
Async/await requires passing a promise to await.
If you read the documentation for async/await, it starts with:
"These features basically act as syntactic sugar on top of promises": https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Async_await https://developer.mozilla.org/en-US/docs/Learn/JavaScript/As...