Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in javascript The following endpoint: https://jsonplaceholder.typicode.com/users/ Returns some information about a particular user: // GET https://jsonplaceholder.typicode.com/users/1 { id: 1, name: Leanne Graham, username: Bret, email:

in javascript The following endpoint: https://jsonplaceholder.typicode.com/users/ Returns some information about a particular user: // GET https://jsonplaceholder.typicode.com/users/1 { "id": 1, "name": "Leanne Graham", "username": "Bret", "email": "Sincere@april.biz", "address": { ... }, "phone": "1-770-736-8031 x56442", "website": "hildegard.org", "company": { ... } } // GET https://jsonplaceholder.typicode.com/users/2 { "id": 2, "name": " Ervin Howell", "username": "Sky", "email": "Ultra@april.biz", "address": { ... }, "phone": "1-770-736-8031 x56443", "website": "hildegard.org", "company": { ... } } Write a function that takes a list of user IDs, returns a promise/callback with their names, and can do all the requests concurrently, rather than sequentially.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions