JS Flashcard

JS Flashcard

Assessment

Flashcard

Created by

Quizizz Content

Computers

12th Grade

Hard

Student preview

quiz-placeholder

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

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Popular Resources on Quizizz

STAAR reading review

13 questions

STAAR reading review

assessment

4th - 5th Grade

7th STAAR Reading Review

16 questions

7th STAAR Reading Review

assessment

7th Grade

STAAR Reading Review

12 questions

STAAR Reading Review

assessment

4th - 7th Grade

STAAR reading vocabulary

14 questions

STAAR reading vocabulary

assessment

4th - 5th Grade

STAAR Reading Review

10 questions

STAAR Reading Review

assessment

3rd - 5th Grade

Reading STAAR Review

17 questions

Reading STAAR Review

assessment

4th Grade

7th grade STAAR Reading Review

24 questions

7th grade STAAR Reading Review

assessment

7th Grade

Revising and Editing

14 questions

Revising and Editing

assessment

4th Grade