Every Value Has a Type
Every value in a program belongs to a type, and the type determines what operations make sense. You can multiply numbers; you can uppercase text; you can't uppercase the number 42.
The core types you'll meet everywhere:
String: text in quotes: "Harriet", "42"
Number: 42, 3.14, -7 (Python splits these into int and float)
Boolean: True/False (Python), true/false (JavaScript)
Nothing: None (Python), null and undefined (JavaScript), Module 7's whole story
Mark this lesson complete
Signed in, your progress follows you to every device.