Lesson 2 of 10

Say it out loud

console.log makes the computer say something.

The computer can say:
  • words
  • numbers
  • yes or no

Scene 1 of 4

The computer can talk to us. It uses console.log.

  1. Hi!
Scene 1 of 4

Tip

Words go inside quotes, but numbers do not.

Library

All about saying things

How does a computer talk?

It writes words on the screen. We tell it what to write.

What is console.log?

console.log is a helper. You give it something, and it shows it.

Quotes

Words need quotes around them. Numbers and true or false do not.

Words
"Hi!"
Numbers
7
Yes or no
true

Words to know

  • console.log = show this
  • quotes = the marks around words