Essentials
primer-original-v2mediumEssentialsWeb Technologiesprimer-original-v2

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

Answer options

A
// this is a comment
B
JavaScript
C
<div>
D
<span>

Correct answer: // this is a comment

Explanation

Quick AnswerThe correct answer is // this is a comment because it directly addresses the core logic of Essentials.

This question has been retained as-is due to its unique context.

Related Essentials questions

Practice more Essentials questions

PrimerPrep has independently reviewed practice questions and coding exercises — all free.