18 ES6+ Features questions from the JavaScript bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Sign up free to see every answer with its explanation and ask the AI tutor.
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
Answer + AI explanation with a free account
2. Which term means: "syntax to unpack array elements or object properties into distinct variables"?
Junior
A.Nullish coalescing
B.Destructuring
C.Optional chaining
D.Default parameters
Answer + AI explanation with a free account
3. Which statement is correct?
Junior
A.Destructuring — syntax to unpack array elements or object properties into distinct variables
B.Destructuring — the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing
C.Destructuring — function parameter values used when the corresponding argument is undefined
D.Destructuring — a ...args parameter that gathers remaining arguments into a real array
Answer + AI explanation with a free account
4. What is Template literal?
Junior
A.the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
B.syntax to unpack array elements or object properties into distinct variables
C.a backtick string supporting ${} interpolation and multi-line text
D.a ...args parameter that gathers remaining arguments into a real array
Answer + AI explanation with a free account
5. Which term means: "a backtick string supporting ${} interpolation and multi-line text"?
Junior
A.Template literal
B.Default parameters
C.Rest parameter
D.Destructuring
Answer + AI explanation with a free account
6. Which statement is correct?
Junior
A.Template literal — function parameter values used when the corresponding argument is undefined
B.Template literal — syntax to unpack array elements or object properties into distinct variables
C.Template literal — a backtick string supporting ${} interpolation and multi-line text
D.Template literal — a ...args parameter that gathers remaining arguments into a real array
Answer + AI explanation with a free account
7. What is Default parameters?
Junior
A.the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
B.a backtick string supporting ${} interpolation and multi-line text
C.function parameter values used when the corresponding argument is undefined
D.a ...args parameter that gathers remaining arguments into a real array
Answer + AI explanation with a free account
8. Which term means: "function parameter values used when the corresponding argument is undefined"?
Junior
A.Default parameters
B.Nullish coalescing
C.Destructuring
D.Template literal
Answer + AI explanation with a free account
9. Which statement is correct?
Junior
A.Default parameters — the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing
B.Default parameters — a backtick string supporting ${} interpolation and multi-line text
C.Default parameters — function parameter values used when the corresponding argument is undefined
D.Default parameters — a ...args parameter that gathers remaining arguments into a real array
Answer + AI explanation with a free account
10. What is Rest parameter?
Junior
A.the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
B.syntax to unpack array elements or object properties into distinct variables
C.a ...args parameter that gathers remaining arguments into a real array
D.a backtick string supporting ${} interpolation and multi-line text
Answer + AI explanation with a free account
11. Which term means: "a ...args parameter that gathers remaining arguments into a real array"?
Junior
A.Nullish coalescing
B.Optional chaining
C.Template literal
D.Rest parameter
Answer + AI explanation with a free account
12. Which statement is correct?
Junior
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
Answer + AI explanation with a free account
13. What is Optional chaining?
Mid
A.a ...args parameter that gathers remaining arguments into a real array
B.the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing
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.syntax to unpack array elements or object properties into distinct variables
Answer + AI explanation with a free account
14. Which term means: "the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing"?
Mid
A.Optional chaining
B.Default parameters
C.Template literal
D.Nullish coalescing
Answer + AI explanation with a free account
15. Which statement is correct?
Mid
A.Optional chaining — function parameter values used when the corresponding argument is undefined
B.Optional chaining — a ...args parameter that gathers remaining arguments into a real array
C.Optional chaining — the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing
D.Optional chaining — syntax to unpack array elements or object properties into distinct variables
Answer + AI explanation with a free account
16. What is Nullish coalescing?
Mid
A.syntax to unpack array elements or object properties into distinct variables
B.the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
C.a backtick string supporting ${} interpolation and multi-line text
D.function parameter values used when the corresponding argument is undefined
Answer + AI explanation with a free account
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)"?
Mid
A.Nullish coalescing
B.Rest parameter
C.Template literal
D.Default parameters
Answer + AI explanation with a free account
18. Which statement is correct?
Mid
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
Answer + AI explanation with a free account
Free to start
Answers, AI explanations, and a free readiness check
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take the free 2-minute readiness check for a scored result. One full AI mock interview, scored like a real panel, is free when you sign up.