×

javascript · level 1 · unit 1 · lesson 2

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

shows a message on the screen.

console.log writes a message in the console, the area where your program's messages appear. Log means write down, like a captain's logbook. There is a dot in the middle and no spaces.

Whatever is inside the brackets is what appears. Words go inside quote marks, like "Hello, world!". A piece of text in quotes is called a . Picture the letters threaded on a string, like beads.

The quotes tell JavaScript where your text starts and stops, and they are not shown. The ; at the end finishes the instruction, like a full stop finishes a sentence.

console.log("Hello, world!");

Use the same quote mark at both ends of your string.