Home  >  Article  >  Web Front-end  >  There are several types of comments in javascript

There are several types of comments in javascript

青灯夜游
青灯夜游Original
2021-10-14 11:39:189789browse

There are three types of JavaScript comments, namely: 1. Multi-line comments, starting with "/*" and ending with "*/", with the syntax "/* comment content*/"; 2. Single-line comments Comments start with double slashes "//", and the syntax is "//comment content"; 3. Line comments, the syntax is "f846e834a2b5919ba85ae4e8b246f1a2 after it. This is different from html comments.

[Recommended learning: javascript advanced tutorial]

The above is the detailed content of There are several types of comments in javascript. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn