112k views
18 votes
What is the point of comments in code? Discuss at least two possible uses of code, including specific examples of what a comment might “look like.”

User Daxsorbito
by
5.3k points

1 Answer

8 votes

Answer:

Better collabaration and helping find bugs.

Step-by-step explanation:

When working with a group of people, comments help the other person understand what you are doing.

Ex. //cat sprite

Also, it helps find bugs. For example, if the cat sprite is not working that means you know it has something to do with that peice of code.

User Orentet
by
4.9k points