Comments
Learn how to create and manage JavaScript comments.
JavaScript comments can be used to explain JavaScript code, and to make it more readable.
JavaScript comments can be used to prevent code execution, when testing alternative code.
We can use single line and multi-line comments in JavaScript.
Single Line
Single line comments are the most often used method of placing comments.
Multi-line
Multi-line or block comments are used when documenting the project.
Edit on GitHub
Last updated on