Five hands-on modules take you from your first line of code to writing your own functions — one small win at a time.
Variables are how programs remember things. In this module you'll learn what a variable is, how to declare one, and how to use variables to store, combine, and print real data — finishing with a mini challenge to prove it.
Understand variables — what they are and why programs need them.
Declare and assign variables with strings and numbers.
Use variables in expressions and print their values to the console.
You crushed the “Use Variables” challenge — your code ran without a single error.
age2 works, 2age doesn't.