Multiple choice technology web technology

What is the correct JavaScript syntax to insert a comment that has more than one line?

  1. //This comment has ...//

  2. <!--This comment has ...-->

  3. /This comment has .../

  4. <--This comment has ...-->

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Multi-line comments in JavaScript are enclosed between /* and /. Option A shows single-line syntax, option B uses HTML comment syntax, and option C correctly shows the multi-line comment syntax (though the closing slash is backward in the option text, the pattern /...*/ is correct).