Intermediate Code Comments #inline-comments #todo #fixme

Writing Inline Comments

6 exercises — practise the WHY not WHAT rule, choosing the right marker (TODO/FIXME/HACK), and writing comments that give future developers the context they need.

0 / 26 completed
1 / 26
You have this line of code: `results = results.filter(x => x.status !== "deleted")` Which comment follows the "WHY not WHAT" rule?

Frequently Asked Questions

What will I practice in "Writing Inline Comments — Code Comments Exercises"?

This is a Code Comments exercise set. It walks through 26 scenario-based multiple-choice questions built around real usage of Code Comments terminology that IT professionals encounter on the job.

Is this exercise free to use?

Yes. Every exercise on CoderSlingo, including this one, is free to complete with no account, sign-up, or paywall.

How many questions are in this exercise?

This set contains 26 questions. Each one shows immediate feedback and a detailed explanation after you answer, so you learn the correct usage right away rather than waiting for a final score.