12.
What is the purpose of comments in JavaScript?
To provide explanations or documentation for the code.
To temporarily disable a piece of code.
To identify potential bugs or issues in the code.
To improve code readability.
Correct: A, D
Comments in JavaScript are used to provide explanations or documentation for the code, making it easier for other programmers to understand the purpose and functionality of certain code sections. Comments can also be used to temporarily disable a piece of code during development and testing. Additionally, comments can help identify potential bugs or issues in the code. They play a critical role in improving code readability and maintainability.