Skip to content

iBrianWarner/js_fetch_data_advanced_DOM

 
 

Repository files navigation

  1. Replace <your_account> with your Github username in the link
  2. Follow this instructions
    • There are no tests for this task so use npm run lint command instead of npm test

Task: Fetch data (advanced)

API Url:

The main goal of this task is an advanced using of Promises.

Create next functions:

  • getFirstReceivedDetails which takes array of phones IDs and resolves with the first receiving detail (the fastest response NOT the first in the list). Ignore the other responses.
  • getAllSuccessfulDetails which takes array of phones IDs and resolves with an array of all successfully received details. (errors should be ignored)

(optional) getThreeFastestDetails which takes array of phones IDs and resolves with an array of the details for the first 3 responses (the fastest).

Hint: It doesn't matter in what way you choose to notify users about resolved or rejected promises. You can use DOM or console.log.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SCSS 38.2%
  • HTML 35.9%
  • JavaScript 25.9%