Lesson 3 of 55
javascriptData Types & Type‑Coercion
10 mins
Course progress5%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 3 of 55
javascript10 mins
Keep these ideas in mind as you work through the lesson.
Primitive types:
Number – all numbers are floating point (NaN, Infinity).StringBooleannull – intentional absence of any value.undefined – uninitialised.Symbol – unique identifiers.BigInt – arbitrarily large integers.Objects, arrays and functions are reference types.
'5' + 3 // "53" (string concatenation)
'5' - 3 // 2 (numeric subtraction)
true + 1 // 2 (true → 1)