Thread: Java script
View Single Post
Old 11-08-2017, 02:13 AM   #3
kvd1216
Registered User
 
Join Date: Sep 2017
Posts: 22
Single Line Comments
Single line comments start with //.
Any text between // and the end of the line will be ignored by JavaScript (will not be executed).

Multi-line Comments
Multi-line comments start with /* and end with */.
Any text between /* and */ will be ignored by JavaScript.

Using Comments to Prevent Execution
Using comments to prevent execution of code is suitable for code testing.
Adding // in front of a code line changes the code lines from an executable line to a comment.
kvd1216 is offline   Reply With Quote