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 trialAltamir Coelho
1,088 PointsComment 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.
3 Answers
Rafael Capati
10,725 PointsHi Altamir, look how I did, see if you are missing something:
Multline comments looks like this:
/* this is a comment */
Altamir Coelho
1,088 PointsThank 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!
Jacob Mishkin
23,118 PointsI 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
1,088 PointsI 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.
Jacob Mishkin
23,118 PointsI 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.
John Eiler
10,499 Points// This is a comment
Altamir Coelho
1,088 PointsAltamir Coelho
1,088 Pointsps: the blog editor is omitting my * asterisk signs between the back slashes above