Web Technology
Accenture Technical PrimereasyWeb TechnologyJavascript

Which of the below statements are used to comment a line in JavaScript file?

Answer options

A
True
B
False

Correct answer: True

Explanation

Quick AnswerThe correct answer is True because it directly addresses the core logic of Web Technology.

JavaScript supports two comment syntaxes: // for single-line comments and /* ... */ for multi-line block comments. Both are valid for commenting code.

Related Accenture Web Technology questions

Practice more Accenture Web Technology questions

PrimerPrep has 1400+ practice questions, 2026 simulations and coding hands-on — all free.

Watch Walkthroughs!