M not clearly understand why we use comments??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

M not clearly understand why we use comments???

19th Dec 2016, 11:58 AM
hafii Cheema
hafii Cheema - avatar
4 Answers
+ 3
they are optional but provide documentation to a program, in case of large software projects it is essential to use comments because software developer and tester are not the same person so that later testing teams or integration team can resolve issues and errors.
19th Dec 2016, 12:01 PM
Ravi Kumar
Ravi Kumar - avatar
+ 1
thnks... ☺
19th Dec 2016, 12:03 PM
hafii Cheema
hafii Cheema - avatar
+ 1
its used when u not clearly understand the code
19th Dec 2016, 1:09 PM
manish rawat
manish rawat - avatar
0
Commenting is a way that you can leave comments within your code without affecting the code itself. Commenting is also a convenient way to make code inactive without having to delete it entirely. in Html You can start a comment with <!-- and end a comment with --> in javascript you can comment on line with // or multiline with /* for start and for the */ end
20th Dec 2016, 4:58 PM
Adnen Rebai
Adnen Rebai - avatar