// Single-line
Use it for brief explanations right above the code or at the end of a statement.
Document your code professionally.
JavaScript Comments
Tutor: In JavaScript, comments are used to explain code. Single-line comments start with a double slash //.
Write a // comment and a /* */ comment:
> Awaiting comments...
Use it for brief explanations right above the code or at the end of a statement.
Ideal for formal function documentation or for "turning off" blocks of code temporarily during debugging.
Write valid single-line and multi-line comments.
Understand when and how to document code.
Master JavaScript comment syntax.