Comments

JavaScript

It is possible to write comments into your JavaScript code that will be ignored by the browser (will not be treated as executable code).

The uses of comments can be providing some instructions or reminders to yourself or other developers, about the code written, its purpose, workings etc. We should use it often which is a good practice especially in large application.

Single Line Comment

The double forward slash // infront of the statement is used for single line comment.

Multi-Line Comment

A multi-line comment is written between the strings /* and */.


Reset

  Thank you for your love and generous support  😄

DONATE