Lesson 03
What a “type” is
The simplest idea in the course: a “type” is just the kind of a value.
PLAINEvery value your program touches is one of a few basic kinds — a number, a piece of text, a true/false, or a list. That kind is its type.
25 the number and "twenty-five" the text are different types, even though they mean the same thing to you.A LEVEL DEEPERCoders have standard names: text is a
string, true/false is a boolean, a list is an array. You'll see those words everywhere — they're just labels for “kind of value.” JavaScript has all these types; it simply never checks that the right kind is in the right place.