Quick JavaScript Crash Course - Modern and Advanced JavaScript - Promises-any-vs-race
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between Promise.allSettled and Promise.any?
Promise.allSettled and Promise.any both wait for all promises to settle.
Promise.allSettled and Promise.any both resolve with the first promise to settle.
Promise.allSettled resolves with the first promise, while Promise.any waits for all promises to settle.
Promise.allSettled waits for all promises to settle, while Promise.any resolves with the first resolved promise.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does Promise.any return when all promises are rejected?
The first rejected promise
An AggregateError
An empty array
The last rejected promise
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does Promise.any determine which promise to resolve with?
It resolves with the last promise to settle.
It resolves with the first promise to be rejected.
It resolves with the first promise to be resolved.
It resolves with the promise that takes the longest time.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the key difference between Promise.any and Promise.race?
Promise.any resolves with the first resolved promise, while Promise.race resolves or rejects with the first promise to settle.
Promise.any and Promise.race both resolve with the first promise to settle.
Promise.any waits for all promises to settle, while Promise.race resolves with the first promise to settle.
Promise.any resolves with the first promise to settle, while Promise.race waits for all promises.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which ECMAScript version introduced Promise.any?
ES2020
ES2021
ES2017
ES2015
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
6 questions
Agile Project Management - Welcome to Your Agile User Stories Training
Interactive video
•
University
6 questions
Truss seeks to woo northern Tory voters
Interactive video
•
University
4 questions
Tips, Tricks, and Techniques for Node.js Development 3.3: Do It the Promises Way
Interactive video
•
University
2 questions
Modern JavaScript from the Beginning - Second Edition - Multiple Promises with Async and Await
Interactive video
•
University
2 questions
Multi-Paradigm Programming with Modern C++ - Running Asynchronous Tasks
Interactive video
•
University
2 questions
Async & Await
Interactive video
•
University
2 questions
Multi-Paradigm Programming with Modern C++ - Coroutine Machinery
Interactive video
•
University
6 questions
Introducing Ionic 2 (Video 11)
Interactive video
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University