
JS Flashcard

Flashcard
•
Quizizz Content
•
Computers
•
12th Grade
•
Hard
Student preview

29 questions
Show all answers
1.
FLASHCARD
Front
What is the purpose of a Promise in JavaScript?
Back
To handle asynchronous operations
2.
FLASHCARD
Front
What is the state of a Promise when it is created?
Back
Pending
3.
FLASHCARD
Front
Which method is used to handle a successful Promise resolution? Options: catch(), finally(), then(), reject()
Back
then()
4.
FLASHCARD
Front
Which method is used to handle a rejected Promise? Options: then(), finally(), catch(), resolve()
Back
catch()
5.
FLASHCARD
Front
What does the 'async' keyword do in a function declaration?
Back
Makes the function return a Promise
6.
FLASHCARD
Front
What does the 'await' keyword do?
Back
Waits for a Promise to resolve
7.
FLASHCARD
Front
What is the JavaScript Event Loop responsible for?
Back
Handling asynchronous callbacks
8.
FLASHCARD
Front
Where are asynchronous callbacks placed before they are executed?
Back
Callback Queue
9.
FLASHCARD
Front
What is the 'fetch' API used for?
Back
Making network requests
10.
FLASHCARD
Front
What does the 'fetch' API return?
Back
A Promise
Explore all questions with a free account
Popular Resources on Quizizz
STAAR reading review

•
4th - 5th Grade
7th STAAR Reading Review

•
7th Grade
STAAR Reading Review

•
4th - 7th Grade
STAAR reading vocabulary

•
4th - 5th Grade
STAAR Reading Review

•
3rd - 5th Grade
Reading STAAR Review

•
4th Grade
7th grade STAAR Reading Review

•
7th Grade
Revising and Editing

•
4th Grade