What does mean comments? What are their fuctions? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does mean comments? What are their fuctions?

Please help me I can not understanding it

4th May 2019, 1:22 PM
Jhonney Eduardo Correa
Jhonney Eduardo Correa - avatar
2 Answers
0
Comments are there so someone else can better understand your code. Some examples of their use would be putting a comment before a function saying what the function does, or if you have a variable called size putting in a comment its unit such as inch or mmorpg so the code is more legible
5th May 2019, 4:43 AM
Hothouseinwar Polik
Hothouseinwar Polik - avatar
+ 3
Jhonney Eduardo Correa Often cited as one of the most useful and least used programming conventions, a comment is a text note added to source code to provide explanatory information, usually aboutthe function of the code. ... Peer developers sometimes assess code for the completeness and readability of its comments. source: https://whatis.techtarget.com/definition/comment I hope I was helpful
4th May 2019, 1:28 PM
Alessio Benvenuti
Alessio Benvenuti - avatar