💻
Your First Code!
Write your first line of code and see the result instantly
Time to write your first line of code! We'll use the console.log() command. It's like telling the computer: 'Show me this!'
📢
console.log = megaphone
Imagine `console.log()` is a megaphone. Everything you say into the megaphone (inside the parentheses) appears on the console screen.
javascript
💬
This command prints 'Hello, World!' to the console. Text always goes in quotes.
Note: text goes in quotes (single '' or double ""). This is important — without quotes the computer doesn't know these are words, not commands.
Don't forget the semicolon (;) at the end of the line! It's like a period at the end of a sentence. Without it the code may not work.