ES6+ Features interview questions

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.

Practice ES6+ Features free

1. What is Destructuring?

Junior
  1. A.a ...args parameter that gathers remaining arguments into a real array
  2. B.syntax to unpack array elements or object properties into distinct variables
  3. C.the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
  4. 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
  1. A.Nullish coalescing
  2. B.Destructuring
  3. C.Optional chaining
  4. D.Default parameters

Answer + AI explanation with a free account

3. Which statement is correct?

Junior
  1. A.Destructuring — syntax to unpack array elements or object properties into distinct variables
  2. B.Destructuring — the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing
  3. C.Destructuring — function parameter values used when the corresponding argument is undefined
  4. 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
  1. A.the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
  2. B.syntax to unpack array elements or object properties into distinct variables
  3. C.a backtick string supporting ${} interpolation and multi-line text
  4. 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
  1. A.Template literal
  2. B.Default parameters
  3. C.Rest parameter
  4. D.Destructuring

Answer + AI explanation with a free account

6. Which statement is correct?

Junior
  1. A.Template literal — function parameter values used when the corresponding argument is undefined
  2. B.Template literal — syntax to unpack array elements or object properties into distinct variables
  3. C.Template literal — a backtick string supporting ${} interpolation and multi-line text
  4. 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
  1. A.the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
  2. B.a backtick string supporting ${} interpolation and multi-line text
  3. C.function parameter values used when the corresponding argument is undefined
  4. 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
  1. A.Default parameters
  2. B.Nullish coalescing
  3. C.Destructuring
  4. D.Template literal

Answer + AI explanation with a free account

9. Which statement is correct?

Junior
  1. A.Default parameters — the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing
  2. B.Default parameters — a backtick string supporting ${} interpolation and multi-line text
  3. C.Default parameters — function parameter values used when the corresponding argument is undefined
  4. 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
  1. A.the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
  2. B.syntax to unpack array elements or object properties into distinct variables
  3. C.a ...args parameter that gathers remaining arguments into a real array
  4. 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
  1. A.Nullish coalescing
  2. B.Optional chaining
  3. C.Template literal
  4. D.Rest parameter

Answer + AI explanation with a free account

12. Which statement is correct?

Junior
  1. A.Rest parameter — a backtick string supporting ${} interpolation and multi-line text
  2. B.Rest parameter — the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing
  3. 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)
  4. 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
  1. A.a ...args parameter that gathers remaining arguments into a real array
  2. B.the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing
  3. C.the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
  4. 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
  1. A.Optional chaining
  2. B.Default parameters
  3. C.Template literal
  4. D.Nullish coalescing

Answer + AI explanation with a free account

15. Which statement is correct?

Mid
  1. A.Optional chaining — function parameter values used when the corresponding argument is undefined
  2. B.Optional chaining — a ...args parameter that gathers remaining arguments into a real array
  3. C.Optional chaining — the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing
  4. 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
  1. A.syntax to unpack array elements or object properties into distinct variables
  2. B.the ?? operator that returns its right operand only when the left is null or undefined (unlike || which also triggers on any falsy value)
  3. C.a backtick string supporting ${} interpolation and multi-line text
  4. 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
  1. A.Nullish coalescing
  2. B.Rest parameter
  3. C.Template literal
  4. D.Default parameters

Answer + AI explanation with a free account

18. Which statement is correct?

Mid
  1. A.Nullish coalescing — the ?. operator that short-circuits to undefined if a reference is null or undefined instead of throwing
  2. 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)
  3. C.Nullish coalescing — a ...args parameter that gathers remaining arguments into a real array
  4. 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.

Practice ES6+ Features free
24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers