Intermediate Code Comments #jsdoc #documentation

JSDoc & Docstrings

6 exercises — write and review JSDoc comment blocks: @param, @returns, @throws, @deprecated, @example.

0 / 27 completed
1 / 27
Which JSDoc comment correctly documents this function? `function slugify(text: string): string` (converts "Hello World" → "hello-world")

Frequently Asked Questions

What will I practice in "JSDoc & Docstrings — Code Comments Exercises"?

This is a Code Comments exercise set. It walks through 27 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 27 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.