We use // for Single-line Comment.
Lets take a look at an example of a single-line comment.
// This is an example of single line comment document.write("Hello World");
Anything between /* and */ will be ignored.
It starts with /* and ends with */
/* This is an example of Multi line comment Below code will print "Hello World" */ document.write("Hello World");