There are several types of comments in javascript

青灯夜游
Release: 2021-10-14 11:39:18
Original
9786 people have browsed it

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 "

There are several types of comments in javascript

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

There are three comment methods in JavaScript (js) language

The first oneis a multi-line comment"/**/", generally at the beginning of a js file, introduce the author, functions and other information.

de037ec670c7d8fa04f09a4e21a46d01

The third method is not to add --> 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!

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!