Types & Coercion interview questions

18 real Types & Coercion 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 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — 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
Reveal the answer + AI explanation — free account

Free to start

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.

Practice Types & Coercion free