##The operating environment of this article: windows7 system, javascript version 1.8.5, DELL G3 computerThere are three comment formats for JavaScript, which are: 1. Through "/**/" symbol for multi-line comments; 2. Use the "//" symbol for single-line comments; 3. Use the "
What is the comment format of JavaScript?
Three types in js Annotation methods
There are three annotation methods in the JavaScript (js) language.The first is a multi-line comment"/**/", generally at the beginning of the js file, the author, function and other information are introduced.e8235927c7687d064fb77c2dbcdceaaa
The third method is not to add --> after it. This is different from html comments. Recommended study: "The above is the detailed content of What is the comment format of JavaScript?. For more information, please follow other related articles on the PHP Chinese website!