2 ms·
Oh I also forgot async/await "The purpose of async/await functions are to simplify the behavior of using promises synchronously and to perform some behavior o
by awjr 10y ago
Oh I also forgot async/await
"The purpose of async/await functions are to simplify the behavior of using promises synchronously and to perform some behavior on a group of Promises. Just like Promises are similar to structured callbacks, async/await is similar to combining generators and promises."
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...