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?
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 10
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 1.33
How to Use Comments in Javascript?
Glissez pour afficher le menu
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?
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 10