Student-friendly HTML, CSS, and JavaScript reference with examples
"Ada", 42, trueData comes in different kinds, and code treats each kind differently.
"Ada" // text — a string
42 // a number
true // yes/no — a boolean
Wrapped in quotes: "hello", "Ada Lovelace", "42" — yes, even digits in quotes are
text, not a number.
No quotes: 42, -7, 3.14.
Only two possible values: true or false. Nothing in between.
"5" + "5" // "55" — text glued together
5 + 5 // 10 — actual math
Same symbol, +, completely different result — because the type is different.