Use of promise in time 1:12

webinar 12: SQL with Express. Why are you using promises whie fetching sql data?

@sourabhkhs23 as data fetching and updation process on sql database can be time expensive, we don’t want our main thread to be kept block for longer duration of time. Thus, we prefer to do it asynchronously.
Promises help us do that, easily and by avoiding callback hell. Hope, that clears why we are using promises to fetch data.