🎴 Flashcard Mode

JavaScript Fundamentals Quiz

Card1 / 10
Mastered0
Review0
QuestionClick to flip

What is the correct syntax for adding comments in JavaScript?

AnswerClick to flip back
A
//This is a comment
💡 Explanation:

In JavaScript, single-line comments are written using double forward slashes '//'. Any text following '//' on the same line is ignored by the JavaScript engine.

Change Mode