in the code for promise.all which is discussed in the video why are we using return. I mean what value is returned and where
Promise.all return statement
when we return Promise.all, we actually return a new promise. this new promise is resolved only when all the promises given to it are resolved. the returned value is this new promise. When it gets resolved, the resolved values can be used inside next then block.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.