0
cannot understand comment
the comment tag is not at all useful in output
6 Answers
+ 4
a comment also helps other people understand what your code is doing when they read it
+ 2
comments are to explain your code to the poor people that have to pick up afterwards. Assume that you will not be the only person reading your code, thus comments help to explain what it does and any complex areas. also after several pieces of code, you come back to one you wrote before and you'll be thankful you put comments in! Trust me :P
+ 1
it's not supposed to be in output. a comment is supposed to stop something from impacting output.
//single line comment
/*multiline*/
+ 1
There is more to programming than just output. If you are working on a project with a team, comments are very valuable for communication.
0
ok thank u
0
in addition to what my colleagues have said,comments can also be use for checks and balances that why it's good practice to explain what a code or lines of code is meant to do, better still it's desired inputs and outputs