Thank you for this helpful video. Respectfully, it is showing that number two worked because you have numeric value 2 in it's resolve section. That said you could have very well added anything in it's resolve section and that would have shown up instead.
It only wants 1 of the four to succeed. As soon as one succeeds then the first then( ) function will run. You will only get one response object even if you had an array of 500 promises and 250 failed. As soon as one succeeds it is done and can move on.
There are a few features not included node.green. Node 15 does include Promse.any but it is only about 6 weeks old and not available in a lot of production environments yet. Here is another support table - developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any#Browser_compatibility
Thank you for this helpful video.
Respectfully, it is showing that number two worked because you have numeric value 2 in it's resolve section. That said you could have very well added anything in it's resolve section and that would have shown up instead.
Very helpful video tutorial. Thanks a lot.
lets imagine there is 4 promises.
what would happen if 2 are rejected,but rest are resolved ? ,i gues 2 will continue working with out 2 promise
It only wants 1 of the four to succeed. As soon as one succeeds then the first then( ) function will run. You will only get one response object even if you had an array of 500 promises and 250 failed. As soon as one succeeds it is done and can move on.
Hey, Steve, thank you very much, I would like to see React course from you.
I already have a React and a React Native course. Check my playlists page
node.green data is somewhat outdated nodejs.org/en/blog/release/v15.0.0/#v8-8-6-35415
There are a few features not included node.green. Node 15 does include Promse.any but it is only about 6 weeks old and not available in a lot of production environments yet.
Here is another support table - developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any#Browser_compatibility
like that kind of videos
Please, more CSS, HTML.
thank you....
My CSS playlist has over 100 videos - ua-cam.com/video/KFKScNHa-8M/v-deo.html