Click in order · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript
Promise.race Syntax
Arrange the elements of a Promise race:
Items to click
- Promise.race([
- fetch('/api/data'),
- ]).then(first => {})
- timeout(5000)
You can check the correct answer by solving this task in the CodeWorlds game.