Say hello to the computer
Every coder's first program prints a message. The word console.log tells the computer: "show this to me."
The thing inside the parentheses, wrapped in quotes, is called a string - that just means a piece of text.
Store something in a variable
A variable is a named box you put a value into. You make one with the word let, give it a name, then use = to put something inside.
Here we make a box called name, put your name inside, then print a greeting that uses it.
Do some math
Computers are excellent at math. Numbers don't need quotes. You can add with +, subtract with -, multiply with *, and divide with /.
Variables can hold numbers too - not just text.
Put it all together
You've already learned the three biggest beginner ideas: printing, variables, and math. Here they all work together to make a tiny program that figures out how old you'll be on your next birthday.
Read each line out loud - you'll be surprised how much you already understand.
Run each example to unlock the next step. You can edit the code before running - that's the whole point.