The new Promise any method

Поділитися
Вставка
  • Опубліковано 31 гру 2024

КОМЕНТАРІ •

  • @adnantariq3346
    @adnantariq3346 3 місяці тому

    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.

  • @zhasan66
    @zhasan66 4 роки тому +1

    Very helpful video tutorial. Thanks a lot.

  • @ilyazmamadaliyev2893
    @ilyazmamadaliyev2893 3 роки тому

    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

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  2 роки тому +1

      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.

  • @B42536
    @B42536 4 роки тому

    Hey, Steve, thank you very much, I would like to see React course from you.

  • @spatz7576
    @spatz7576 4 роки тому

    node.green data is somewhat outdated nodejs.org/en/blog/release/v15.0.0/#v8-8-6-35415

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 роки тому

      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

  • @rmnkot
    @rmnkot 4 роки тому

    like that kind of videos

  • @نقطة-ي4ج
    @نقطة-ي4ج 4 роки тому

    Please, more CSS, HTML.
    thank you....