thecodezone.
The Code Zone
Short steps, at your pace · Free lessons and practice · Member video walkthroughs
Save your next small win.

Checking your account…

01.06 · Comments / Quick check · 3 min

Check your comments knowledge

Two questions before variables. Check your understanding and try again whenever you want.

Activity 6 of 6 in Comments

Rob compares a comment reading // A note with console.log("Hi"); and an output panel showing only Hi.
JavaScript skips the comment and runs the instruction, so only Hi appears in the output.

Two questions. Choose one answer for the first; select all true statements for the second. You can try again as often as you like.

1. Which is the correct way to write a multi-line comment in JavaScript?

Choose one answer.

2. Which statements about JavaScript comments are true?

Select all that apply.

ONE STEP FORWARD

A comment helps a person understand the code. JavaScript skips it.