JavaScript async and data quiz

  • Admin
  • 1 min read

Nine questions on JSON, fetch, promises, async/await and localStorage.

JavaScript

JavaScript async and data quiz

9 questions, instant feedback

Question 1 of 9 Which call turns a JSON string into an object?
Question 2 of 9 What does fetch return?
Question 3 of 9 What does await do inside an async function?
Question 4 of 9 How do you handle a rejected promise with async/await?
Question 5 of 9 Which check catches an HTTP error status from fetch?
Question 6 of 9 What does localStorage.setItem require for its value?
Question 7 of 9 Which method waits for several promises and returns all results?
Question 8 of 9 What does an async function always return?
Question 9 of 9 Which pattern avoids a flash of empty content while data loads?

Your answers stay in this browser. Nothing is sent to a server.