Multi-Line Comments
Summary
- Multi-line comments: used to add comments that span over multiple lines;
- A multi-line comment starts with
/*and ends with*/. Everything in between these symbols is ignored by the JavaScript engine.
/*
This is a multi-line comment.
It can span several lines.
*/
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 12
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you explain the difference between single-line and multi-line comments in JavaScript?
Are there any best practices for using comments in code?
Can you give more examples of when to use multi-line comments?
Awesome!
Completion rate improved to 1.33
Multi-Line Comments
Swipe to show menu
Summary
- Multi-line comments: used to add comments that span over multiple lines;
- A multi-line comment starts with
/*and ends with*/. Everything in between these symbols is ignored by the JavaScript engine.
/*
This is a multi-line comment.
It can span several lines.
*/
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 12