Modern JavaScript quiz

  • Admin
  • 1 min read

Nine questions on destructuring, spread, array methods, modules and classes.

JavaScript

Modern JavaScript quiz

9 questions, instant feedback

Question 1 of 9 Which line extracts name from an object?
Question 2 of 9 What does [...items] create?
Question 3 of 9 Which method returns a new array of transformed items?
Question 4 of 9 Which method keeps only items that pass a test?
Question 5 of 9 What does reduce need besides a callback?
Question 6 of 9 Which syntax imports a named export?
Question 7 of 9 What is a class constructor for?
Question 8 of 9 What does user?.name do when user is null?
Question 9 of 9 Which operator falls back only for null or undefined?

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