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 more than one line-->

  2. //This comment has more than one line//

  3. /This comment has more than one line/

  4. 'This comment has more than one line

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

JavaScript multi-line comments use /* to open and */ to close. Option C is correct. Option A is HTML syntax, option B is two single-line comments which won't work for multiple lines, and option D is not valid comment syntax.