Comments in JavaScript: Overview Comments in JavaScript are primarily used to explain what the code is for or to make it more readable. Single line comments start with a double forward slash (//), but do not have an end tag. Any text that is written after (//) will be completely ignored by JavaScript and
Comments in JavaScript – Tutorial