JavaScript · Exercise 1 of 5Next
Beginner
Say hello in the console
Write a program that prints two lines to the console.
Line 1: exactly Hello, JavaScript!
Line 2: the label 6 * 7 = followed by the answer, worked out by JavaScript (so the console shows 6 * 7 = 42).
What Check tests
- The console shows
Hello, JavaScript! - The console shows
6 * 7 = 42 - The calculation is done by JavaScript, not typed in
- No errors
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Your page
Press Run to see the page.
Console
Nothing logged yet.