Lesson 2 of 7 · 7 min

Variables and data types

Programs store data in variables, and data comes in types: a number (integer or decimal), a string (text in quotes), and a boolean (true/false). Using the right type matters — you can add numbers, but joining strings glues text together.

42 · "hello" · true

Number, string, boolean

Let’s try it! ✍️

Question 1 of

🎉

Great job!

You finished this lesson.

Next lesson → All lessons