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?
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 10
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 1.33
How to Use Comments in Javascript?
Veeg om het menu te tonen
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?
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 10