Javascript Comment

JavaScript comments are used to explain the JavaScript code logic. JavaScript comments are ignored by JavaScript translators. It makes JavaScript code more readable. Types of JavaScript comments: 1. Single-line Comment 2. Multi-line Comment JavaScript Single-line Comment: The double forward slashes (//) are used for Single line comments. Anything between // to the end of the … Read more