30
Comments are notes you write inside your code that the computer ignores. Think of them like the 'sticky notes' you might put in a textbook to remind you of something important.
We use them to explain what the code is doing. It's for the humans who read the code, not the machine. Good coders leave helpful comments for their teammates.
But remember: good code should be clear enough that you don't need too many comments. Use them to explain the 'why', not just the 'what'.
Log in to add a comment.