What is the purpose of comments for conditional logic?
A). To explain code flow
B). To add conditional statements
C). To disable code temporarily
D). None of the above
Which type of comment is suitable for longer explanations or notes?
A). Single-line comments
B). Multi-line comments
C). Both
D). None of the above
What does the 'TODO' comment signify in code?
A). Completed task
B). Code error
C). Future task
D). Code improvement
Which type of comments are not executed by the JavaScript engine?
A). Single-line comments
B). Multi-line comments
C). Both
D). None of the above
How are multi-line comments denoted in JavaScript?
A). //
B). /* */
C).
D). ##
Which symbol is used for single-line comments in JavaScript?
A). //
B). /* */
C).
D). ##
What is the purpose of comments in JavaScript?
A). Documenting code
B). Adding debugging statements
C). Explaining code logic
D). All of the above
What should be avoided when writing comments in JavaScript?
A). Clarity
B). Conciseness
C). Redundancy
D). Grammar
What is the purpose of using comments for debugging?
A). To add debugging tools
B). To disable code temporarily
C). To isolate issues
D). None of the above
Which type of comment is commonly used for TODO notes or future enhancements?
A). Single-line comments
B). Multi-line comments
C). Both
D). None of the above