What is the comment used for? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the comment used for?

24th Aug 2017, 8:57 AM
Zeal
Zeal - avatar
3 Answers
+ 4
comments are useful to have an overview of your code. for example when someone edits your code its better to read when he can see a comment that describes what the line of code does
24th Aug 2017, 8:59 AM
TrueJu
TrueJu - avatar
+ 1
There are two purpose of comments: 1) Make your code more readable and clear to understand 2) Help you to disable a particular segment of code
24th Aug 2017, 9:03 AM
Nikolay Ivanov
Nikolay Ivanov - avatar
0
thanks
24th Aug 2017, 9:02 AM
Zeal
Zeal - avatar