We can write additional notes to help to think through problems in JavaScript . To write additional notes, you use comments.
Comments appear in** two **forms:
//
/* */
Commenting with //
You can write comments in JavaScript by adding double slashes (//). Anything after // is commented and will not be run by JavaScript.
` // comments in javascript.`
Sample Example :
console.log("Hi folks") // printing hi folks
Commenting with /* /
You can also write comments with the / / syntax. Any words between / and */ is a comment.
/* comment in other way that lets user to add more text */
You can write comments that span multiple lines if you use /* */:
/*
all
lines
commented
in
this
example.
*/
Happy Learning