How do you comment out a single line of code in JavaScript?
- /* This is a comment */
- // This is a comment
- ** This is a comment **
In JavaScript, single-line comments are created using the double forward slash //. Option 2 demonstrates the correct syntax for commenting out a single line of code in JavaScript.
Loading...
Related Quiz
- In Scrum, the ___________ is responsible for prioritizing the backlog and ensuring the team has a clear understanding of the work to be done.
- How does journaling improve the reliability of a file system?
- How does virtual memory differ from physical memory in memory management?
- In Git, a ___________ is a snapshot of the project's files at a specific point in time.
- Which type of redundancy does database normalization aim to eliminate?