- Date:31/05/2022
- Day:Tuesday
Today, I started at about 10:30 am as I was in progress to complete the java script cource and the bidding project so, today I started with the left over task so, firstly I started with left over java script cource so, firstly I did error handling with try and catch statements The try statement allows you to define a block of code to be tested for errors while it is being executed. The catch statement allows you to define a block of code to be executed, if an error occurs in the try block.after this I did returning value from async function Async functions always return a promise. If the return value of an async function is not explicitly a promise, it will be implicitly wrapped in a promise and after this I did returning promise in parallel he Promise.all() method takes an iterable of promises as an input, and returns a single Promise that resolves to an array of the results of the input promises.at last I did Promise.race(),Promise.allSettled() all is fro handling many async calls and race is for where performance matters so, this way my day ended up and I got to learn many new things.with this I completed the cource.
Top comments (0)