Question · JavaScript and TypeScript course · Module 1: JavaScript Basics
Single-line Comments
How does a single-line comment start in JavaScript?
Answer options
- // comment
- -- comment
- /* comment */
- # comment
Show the answer
Correct answer:
- // comment