Basic JavaScript - Comment Your JavaScript Code

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

/var -number=5;/in-line comment

/*this is a
d
d
d
sdfas

dsaf
vczx


multi-line comment*/

number-9;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Comment Your JavaScript Code

Link to the challenge:

Welcome to our community!

The instruction says to use a double forward slash to make an in-line comment:

// This is an in-line comment.

The following code snippet is your solution that doesn’t work. You have two mistakes here. The first one is that an in-line comment starts with double forward slashes // (you have only one), and the variable is not declared properly (delete the “-” operator before the variable’s name “number”):

Delete the first slash, before the keyword ‘var’.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.