Public article

Strings, Numbers, and Booleans in JavaScript

A plain-language introduction to the three beginner value types you will see constantly in JavaScript.

Strings are text values

Strings store words and sentences, which is why they appear in so many beginner code examples.

Numbers and booleans solve different problems

Numbers help with calculations. Booleans help with simple yes-or-no checks.

Type differences matter early

Noticing the difference between text and numbers prevents a lot of beginner confusion later.