A multi-line comment is used to make a long comment short. The double-slash (//) represents a multi-line comment. It’s easy to write comments using a multi-line syntax. You can have as many lines as you need, and they are not necessarily interpreted by the browser. Adding multiple-line comments will create a more readable code, and they will display correctly in the browser.
You can also use the // symbol to comment a single-line line of code. The // symbol stands for a single-line comment, and anything that follows is ignored. However, if you’re using multiple-line comments, use 2 slashes. This will prevent the code from being executed. When you write a multi-lined comment, the compiler will ignore all the lines between the open and closing tag.
If you’re writing a long-lined comment, use the // character. If you’re using the block-comment, you can place multiple lines of comments. This is useful if the code is a long one. Putting a slash between two blocks of code makes it difficult for the computer to interpret it. If you’re writing a single-line comment, you can use a slash as a separator.