3 ms·
It's the same code. Async/await is just syntactic sugar over the promise syntax. To me depends on what you are doing, there are cases where using .then()/.catc
by alerighi 5y ago
It's the same code. Async/await is just syntactic sugar over the promise syntax.
To me depends on what you are doing, there are cases where using .then()/.catch() and .finnally() makes the code more concise and simpler than using async/await.