Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics (Retired) Making Decisions with Conditional Statements Review Else If Clauses and JavaScript Comments

Altamir Coelho
Altamir Coelho
1,088 Points

Comment out the two lines of code below using JavaScript's multi-line commenting syntax:

(JavaScript Basics Course)

I've tried every answer on this quiz that asks to fill the blank _________________ /*/ or // and even / typing the two line comment presented in the quiz between signs did mot work*/

Thanks for your help.

Altamir Coelho
Altamir Coelho
1,088 Points

ps: the blog editor is omitting my * asterisk signs between the back slashes above

3 Answers

Hi Altamir, look how I did, see if you are missing something:

alt text

Multline comments looks like this:

/* this is a comment */ 
Altamir Coelho
Altamir Coelho
1,088 Points

Thank you so much Rafael. I never realized that the second _________________ blank at the bottom was there the whole time, as it was not highlighted at the same time as the top one. This silly thing got me stuck for nothing. Thank you!

I just took the quiz. The answer is one of the answers in another question. look for the question that asks what two types of ways to comment out text in JS.

Altamir Coelho
Altamir Coelho
1,088 Points

I would love to know how you got the answer to pass: I just typed:

/* this is a comment*/

Which is one of the answers in the other question: What two types of ways to comment out text in JS.

It didn't work.

I got the answer to pass because I looked at the question:

Which of the following is a valid comment in JavaScript?

this gave 4 possible answers one of which is the correct answer, answers B and D. here is where the answer to this question is answered in the quiz.

// This is a comment