Home >Web Front-end >Front-end Q&A >There are several types of comments in javascript
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 "3a3f0728edfa12baa33f12affe9785e1 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!