JavaScript final quiz

  • Admin
  • 1 min read

Ten mixed questions on events, async code, modules, accessibility and the capstone.

JavaScript

JavaScript final quiz

10 questions, instant feedback

Question 1 of 10 Which statement about JavaScript in the browser is true?
Question 2 of 10 Why should a script that reads the DOM be loaded with defer or placed at the end of body?
Question 3 of 10 A form handler throws on a missing field. What is the best response?
Question 4 of 10 Which is the safest way to insert user-provided text?
Question 5 of 10 What does event delegation rely on?
Question 6 of 10 Which code reads a stored object safely?
Question 7 of 10 Why wrap JSON.parse in try...catch when reading saved data?
Question 8 of 10 What is the main benefit of splitting code into modules?
Question 9 of 10 Which practice keeps a to-do app usable with a keyboard?
Question 10 of 10 When should state be written to localStorage in a to-do app?

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