18 real ES6+ Features questions from the JavaScript bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.
1. What is Destructuring?
Junior
A.a ...args parameter that gathers remaining arguments into a real array
B.syntax to unpack array elements or object properties into distinct variables
C.the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
D.function parameter values used when the corresponding argument is undefined
A.Rest parameter — a backtick string supporting ${} interpolation and multi-line text
B.Rest parameter — the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing
C.Rest parameter — the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
D.Rest parameter — a ...args parameter that gathers remaining arguments into a real array
17. Which term means: "the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)"?
A.Nullish coalescing — the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing
B.Nullish coalescing — the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
C.Nullish coalescing — a ...args parameter that gathers remaining arguments into a real array
D.Nullish coalescing — function parameter values used when the corresponding argument is undefined
Answers, AI explanations, and a scored voice mock interview
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.