Search⌘ K
AI Features

Quiz: Say Hello to the Browser

Explore your understanding of basic JavaScript commands like console.log and alert by completing a practice quiz. This lesson helps reinforce foundational concepts before applying them in upcoming projects.

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.