javascript comment code example

Example 1: javascript comment

//This is a javascript single line comment

/*
And here is a
multiline comment
*/

Example 2: comment in javascript

// single line comment 

/* multiline comemnt 
line 2
line 3
line 4 */

Example 3: javascript comment

// Javascript comment single line
/* Javascript comment 
	multiline */

/* CSS comment 
	any line */

Example 4: javascript comment

// For single line comment

/* For block of lines comment
...
...
*/

Example 5: javascript comment

//This is a javascript single line comment

/*
And here is a
multiline comment
*/

Example 6: javascript comment

// Change heading:

document.getElementById("myH").innerHTML = "My First Page";


// Change paragraph:

document.getElementById("myP").innerHTML = "My first paragraph.";

Tags:

Misc Example