Quiz

JavaScript ES6 Quiz

8 questions about the features introduced in JavaScript starting with ES6: let/const, arrow functions, destructuring, and more.

8
questions
~4 min
to complete
instant result
Question 1 of 8
Which of these was introduced in ES6?
Question 2 of 8
What does an arrow function that adds two numbers look like?
Question 3 of 8
What does const { name, age } = user; do?
Question 4 of 8
What is a template literal?
Question 5 of 8
What does the spread operator ...arr do?
Question 6 of 8
How do ES6 modules (import/export) differ from the old approach?
Question 7 of 8
What does function greet(name = "Guest") {} return when called as greet()?
Question 8 of 8
What is a class in ES6?
0/8