...

/

Quiz: Say Hello to the Browser

Quiz: Say Hello to the Browser

Quiz your basics: log it, alert it, quote it right, and don’t forget the semicolon!

We'll cover the following...

In the last lesson, you wrote your first JavaScript commands, using console.log() and alert() to send messages to the browser—either in the console or as a pop-up.

Before we move ahead, let’s test your understanding of the previous lesson. Try answering these quick questions—no pressure, just practice!

1

What is wrong with this line of code?

console.log('Hello");
A)

Strings cannot use single quotes.

B)

It’s missing a semicolon.

C)

The quotes don’t match.

D)

Nothing is wrong.

Question 1 of 30 attempted

Great job on the quiz!

What’s next?

Now it’s time to apply what you’ve learned in a mini-project. In the next lesson, you’ll take on a small challenge to put these concepts into action, just like a real developer would.