A comment may refer to any of the following:
- A comment is text in a program’s code, script, or another file that is not meant to be seen by the user running the program. However, is seen when viewing the source code.
Comments help make code easier to understand by explaining what is happening and help prevent portions of a program from executing. The image is an example of an HTML comment. See our nonexecutable statement page for a full definition and further examples of comments in programming.
What is comment out?
When writing or editing code to help fix a problem or debug, the programmer may comment out one or more lines. After a line is commented out, it’s skipped the next time the code is executed. If, after commenting out code the problem is fixed, it helps give the programmer an idea of where the problem in the code exists.
- Hidden text in Microsoft Excel that enables users to make comments about cells and their values.
Related pages
- How to create a computer program.
- Generally, a comment is a remark, suggestion, or feedback about a product or service. To give Computer Hope a comment, contact customer service.
Related information
- How to insert, edit, and delete a comment in Microsoft Word.
- How to create, edit, and delete a comment in Microsoft Excel.
Business terms, Feedback, Next comment, Nonexecutable statement, Pod, Previous comment, Programming terms, Remark, Suggest