Home > Web Front-end > Front-end Q&A > What is the comment format of JavaScript?

What is the comment format of JavaScript?

藏色散人
Release: 2023-01-11 09:19:14
Original
3630 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.

c4be30a91364efb1646c28f3d75bd431

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:
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
Latest Issues
What are JavaScript hook functions?
From 1970-01-01 08:00:00
0
0
0
What is JavaScript garbage collection?
From 1970-01-01 08:00:00
0
0
0
c++ calls javascript
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template