symbol is used for comments in Javascript code example
Example 1: javascript comment
//This is a javascript single line comment
/*
And here is a
multiline comment
*/
Example 2: javascript comment
// Change heading:
document.getElementById("myH").innerHTML = "My First Page";
// Change paragraph:
document.getElementById("myP").innerHTML = "My first paragraph.";