It's a quick guide to write a function that returns promise and how to consume it.
- How to write a function that returns promise.
Now there are two ways to consume the returned promise.
A. using then-catch
B. using async-await
A. using then-catch
B. using async-await
Top comments (0)