const promise1 = Promise.resolve(3);
      const promise2 = 42;
      Promise.all([promise1, promise2]).then((values) => {
        console.log(values);
      });
      Javascript language logo

      chaining promises

      My JavaScript recipes

      chaining multiple promises

      Shortcut: promise.all

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.