What is the comment format of JavaScript?

藏色散人
Release: 2023-01-11 09:19:14
Original
3506 people have browsed it

There 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?

##The operating environment of this article: windows7 system, javascript version 1.8.5, DELL G3 computer

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: "

javascript basic tutorial"

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!