How to use comments in JavaScript?
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.
How to use comments in JavaScript?
Rating:
Comments are the statements that are ignored by the JavaScript interpreter. Comments can be used for inserting notes about a program or a part of a program. These notes help the programmers to read and debug the code. Comments are helpful for modifying the code in the future.
There are two types of comments as follows:
- Single line comments
- Multi-line comments
This can be used to write comments on multiple lines*/
Rating:
Was this information helpful?
Other articles
- What is server-side JavaScript?
- What is the window object?
- What is a client object?
- How to create an external script file?
- What is the while loop?
