Type Comment
Format
/ / Comment line
/ *
Multi-line comments
* /
Commentary
Comments and annotations. Comments will not run in the code.
// creates a single line comment and will comment until the beginning of the next line of uncommented code.
It is often used to define header comments in code or to provide a line by line commentary upon the code preceeding.
Multi Line comments can be made within the slash & asterisk area. /*~*/ .
Both single line & multiline comments can be freestanding of each other.
Useful for when you want to redraft code or pass code around.
Sample code - QC 2 & QC 3 JavaScript
/ / This is a comment. It doesn't affect the uncommented code following below.
a = 12;
/ *
Is a multi-line comments. Consequently the variable a won't hold a value of 34.
a = 34;
* /
outputs [0] = a;