There are two ways to comment in JavaScript:
Single-line comments: //
Multi-line comments: /* */
Comments are mainly to make the program we write more convenient It is readable and convenient for others to make secondary modifications
Look at the example below, we annotated the regular expression with /* */, and a syntax error was reported during runtime