What are comments?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What are comments?
Rating:
Comments are statements that are ignored by the JavaScript interpreter. It allows the owner of the code to leave notes about the working of the program or a particular statement. There are two types of comments as follows:
- Single Line
- Multiline
For example:
For example:
Programmers can use it to write comments on multiple lines.*/
Rating:
Was this information helpful?
Other articles
- What is a variable?
- How to use the blur() method?
- What is the hash property?
- What is the history object?
- What is the same origin policy?
