4. How do we write comments in Javacsript?
Answers
Answered by
0
Answer:
Single-line comments are used to comment a part of a line or a full line of code in JavaScript. You can use it for either explaining the code or debugging (commenting out to prevent the execution by the browser). For a single-line comment, you have to write two forward slashes: // .
Similar questions