Types & Coercion interview questions

18 Types & Coercion 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 Types & Coercion free

1. What is typeof null?

Junior
  1. A.a historical bug where typeof returns 'object' for null
  2. B.== coerces operands to a common type before comparing; === compares value and type with no coercion
  3. C.a numeric value meaning 'not a number'; NaN !== NaN, so Number.isNaN is used to test for it
  4. D.the values false, 0, '', null, undefined, NaN and 0n — everything else is truthy

Answer + AI explanation with a free account

2. Which term means: "a historical bug where typeof returns 'object' for null"?

Junior
  1. A.Falsy values
  2. B.== vs ===
  3. C.Primitive types
  4. D.typeof null

Answer + AI explanation with a free account

3. Which statement is correct?

Junior
  1. A.typeof null — the 7 immutable value types: string, number, boolean, null, undefined, symbol, bigint
  2. B.typeof null — a unique immutable primitive, typically used as a non-colliding object property key
  3. C.typeof null — a historical bug where typeof returns 'object' for null
  4. D.typeof null — a numeric value meaning 'not a number'; NaN !== NaN, so Number.isNaN is used to test for it

Answer + AI explanation with a free account

4. What is Primitive types?

Junior
  1. A.the values false, 0, '', null, undefined, NaN and 0n — everything else is truthy
  2. B.the 7 immutable value types: string, number, boolean, null, undefined, symbol, bigint
  3. C.a historical bug where typeof returns 'object' for null
  4. D.a numeric value meaning 'not a number'; NaN !== NaN, so Number.isNaN is used to test for it

Answer + AI explanation with a free account

5. Which term means: "the 7 immutable value types: string, number, boolean, null, undefined, symbol, bigint"?

Junior
  1. A.Falsy values
  2. B.Symbol
  3. C.== vs ===
  4. D.Primitive types

Answer + AI explanation with a free account

6. Which statement is correct?

Junior
  1. A.Primitive types — a unique immutable primitive, typically used as a non-colliding object property key
  2. B.Primitive types — a historical bug where typeof returns 'object' for null
  3. C.Primitive types — the values false, 0, '', null, undefined, NaN and 0n — everything else is truthy
  4. D.Primitive types — the 7 immutable value types: string, number, boolean, null, undefined, symbol, bigint

Answer + AI explanation with a free account

7. What is == vs ===?

Junior
  1. A.== coerces operands to a common type before comparing; === compares value and type with no coercion
  2. B.a unique immutable primitive, typically used as a non-colliding object property key
  3. C.a historical bug where typeof returns 'object' for null
  4. D.the values false, 0, '', null, undefined, NaN and 0n — everything else is truthy

Answer + AI explanation with a free account

8. Which term means: "== coerces operands to a common type before comparing; === compares value and type with no coercion"?

Junior
  1. A.typeof null
  2. B.Falsy values
  3. C.== vs ===
  4. D.Primitive types

Answer + AI explanation with a free account

9. Which statement is correct?

Junior
  1. A.== vs === — a historical bug where typeof returns 'object' for null
  2. B.== vs === — the values false, 0, '', null, undefined, NaN and 0n — everything else is truthy
  3. C.== vs === — a numeric value meaning 'not a number'; NaN !== NaN, so Number.isNaN is used to test for it
  4. D.== vs === — == coerces operands to a common type before comparing; === compares value and type with no coercion

Answer + AI explanation with a free account

10. What is NaN?

Mid
  1. A.a historical bug where typeof returns 'object' for null
  2. B.the values false, 0, '', null, undefined, NaN and 0n — everything else is truthy
  3. C.the 7 immutable value types: string, number, boolean, null, undefined, symbol, bigint
  4. D.a numeric value meaning 'not a number'; NaN !== NaN, so Number.isNaN is used to test for it

Answer + AI explanation with a free account

11. Which term means: "a numeric value meaning 'not a number'; NaN !== NaN, so Number.isNaN is used to test for it"?

Mid
  1. A.NaN
  2. B.typeof null
  3. C.Falsy values
  4. D.== vs ===

Answer + AI explanation with a free account

12. Which statement is correct?

Mid
  1. A.NaN — a numeric value meaning 'not a number'; NaN !== NaN, so Number.isNaN is used to test for it
  2. B.NaN — the 7 immutable value types: string, number, boolean, null, undefined, symbol, bigint
  3. C.NaN — a unique immutable primitive, typically used as a non-colliding object property key
  4. D.NaN — == coerces operands to a common type before comparing; === compares value and type with no coercion

Answer + AI explanation with a free account

13. What is Falsy values?

Junior
  1. A.the 7 immutable value types: string, number, boolean, null, undefined, symbol, bigint
  2. B.a historical bug where typeof returns 'object' for null
  3. C.the values false, 0, '', null, undefined, NaN and 0n — everything else is truthy
  4. D.a numeric value meaning 'not a number'; NaN !== NaN, so Number.isNaN is used to test for it

Answer + AI explanation with a free account

14. Which term means: "the values false, 0, '', null, undefined, NaN and 0n — everything else is truthy"?

Junior
  1. A.typeof null
  2. B.== vs ===
  3. C.Primitive types
  4. D.Falsy values

Answer + AI explanation with a free account

15. Which statement is correct?

Junior
  1. A.Falsy values — the values false, 0, '', null, undefined, NaN and 0n — everything else is truthy
  2. B.Falsy values — == coerces operands to a common type before comparing; === compares value and type with no coercion
  3. C.Falsy values — a historical bug where typeof returns 'object' for null
  4. D.Falsy values — the 7 immutable value types: string, number, boolean, null, undefined, symbol, bigint

Answer + AI explanation with a free account

16. What is Symbol?

Mid
  1. A.== coerces operands to a common type before comparing; === compares value and type with no coercion
  2. B.a unique immutable primitive, typically used as a non-colliding object property key
  3. C.a historical bug where typeof returns 'object' for null
  4. D.the values false, 0, '', null, undefined, NaN and 0n — everything else is truthy

Answer + AI explanation with a free account

17. Which term means: "a unique immutable primitive, typically used as a non-colliding object property key"?

Mid
  1. A.Symbol
  2. B.Falsy values
  3. C.Primitive types
  4. D.== vs ===

Answer + AI explanation with a free account

18. Which statement is correct?

Mid
  1. A.Symbol — a numeric value meaning 'not a number'; NaN !== NaN, so Number.isNaN is used to test for it
  2. B.Symbol — a unique immutable primitive, typically used as a non-colliding object property key
  3. C.Symbol — the 7 immutable value types: string, number, boolean, null, undefined, symbol, bigint
  4. D.Symbol — the values false, 0, '', null, undefined, NaN and 0n — everything else is truthy

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 Types & Coercion 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