Lesson 4 of 4 · 8 minutes

Your first program

Time to run real code.

console.log tells the computer to show something. The printed result is called the output.

Press Run. Then change the words inside the quotes and run it again. The computer follows the new instruction and the output changes.

Loading the editor…

Change the words inside the quotes, then press Run again.

Quick check

What does console.log do?

Choose one answer.

What happens if you remove the quotes around the words?

Choose one answer.

You ran your first program. From here on, you will write and run code in almost every lesson.