js function 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: js comment

//This does not effect the code.
var something = "But this does effect the code!";

Example 4: comment in JavaScript

// This is how you comment a single line in JavaScript

/*
This is how you comment
multiple lines in 
JavaScript
*/

Example 5: comment in js

// use '//'

Example 6: javascript comment

// For single line comment

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