HomeQuizzesJavaScriptES6+ Features
intermediateJS-INT-003

ES6+ Features

10 questions  ·  JavaScript  ·  intermediate level

📝10 questions
No time limit
🔄Retake anytime
Instant feedback

Preview questions

1
Multiple Choice

What is the output?

const [a, , b] = [1, 2, 3]
console.log(a, b)
A
B
C
D
🔒 Sign in to answer and see explanation
2
Multiple Choice

What does this output?

function sum(first, ...rest) {
  return first + rest.reduce((a, b) => a + b, 0)
}
console.log(sum(1, 2, 3, 4))
A
B
C
D
🔒 Sign in to answer and see explanation
3
Spot the Bug

Spot the issue:

const name = "Rahul"
const msg = "Hello, ${name}!"
console.log(msg)
A
B
C
D
🔒 Sign in to answer and see explanation
+ 7 more questions
Sign in to attempt the full quiz
Free · No credit card required

Ready to attempt the full quiz?

Sign in to attempt all 10 questions, track your progress, and unlock AI-powered personalization.

← Browse all JavaScript quizzes