Hang on...
Using Promise.all() in JavaScript
Medium
5
59.4% Acceptance
In this lab, you will learn to use the Promise.all()
method in JavaScript. You are required to create two functions, getUsers
and getPosts
, that simulate API calls by returning Promises. Afterwards, you will use the Promise.all()
method to call both functions concurrently and handle their resolutions.
Make sure that you're exporting the functions that you've created
Adding your container request
Getting your dedicated container
Connecting to your container
Setting up your editor
Finalizing your playground
TerminalEditorBrowser