How to Use Comments in Javascript?
Summary
- Comments: a way to include useful notes or explanations in the code, or to temporarily ignore a piece of code;
- Single-line comment: used to add a comment that only takes up one line;
- The syntax of a single-line comment is:
// your comment text here …
1. What symbol is used to create a single-line comment in JavaScript?
2. Which of the following is a correct example of a single-line comment?
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 10
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 1.33
How to Use Comments in Javascript?
Swipe um das Menü anzuzeigen
Summary
- Comments: a way to include useful notes or explanations in the code, or to temporarily ignore a piece of code;
- Single-line comment: used to add a comment that only takes up one line;
- The syntax of a single-line comment is:
// your comment text here …
1. What symbol is used to create a single-line comment in JavaScript?
2. Which of the following is a correct example of a single-line comment?
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 10