Lesson card · What a program is
Your first statement: console.log
// my first program
console.log('Hello');
console.log(2 + 3);console.log(x) prints x to the console so you can see what the program is doing.
Text goes in quotes: console.log('Hello') prints Hello. Without quotes, 2 + 3 is maths and prints 5.
• Each statement often ends with ;
New words terminal: a text window where you type commands for the computer to run