How can you add a comment in a JavaScript? code example
Example 1: comment in javascript
// single line comment
/* multiline comemnt
line 2
line 3
line 4 */
Example 2: how to comment in javascript
/* this is a javascript comment
that is multi lines */
// This is a single line comment
Example 3: comment in JavaScript
// This is how you comment a single line in JavaScript
/*
This is how you comment
multiple lines in
JavaScript
*/
Example 4: comment in js
// use '//'