Command Palette

Search for a command to run...

Hectal
Phase 0: Start Here: What JavaScript Is
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

  1. The console shows Hello, JavaScript!
  2. The console shows 6 * 7 = 42
  3. The calculation is done by JavaScript, not typed in
  4. 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.