Asynchronous functions always return a Promise
. So, I added following promise example firstly.
Promise Examples
The following three examples are doing same job. I used function statement and arrow function in Promise.
Asynchronous functions always return a Promise
. So, I added following promise example firstly.
The following three examples are doing same job. I used function statement and arrow function in Promise.