Search⌘ K

Quiz: Say Hello to the Browser

Explore your understanding of introductory JavaScript by completing a quiz on sending messages to the browser using console.log() and alert(). This lesson helps reinforce basic commands before applying them in a small project.

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!

Technical Quiz
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.


1 / 3

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.