Challenge: Write a Multi-Line Comment
Task
Comment out lines 3 through 10 of the code, replacing the ___
with the correct syntax for a multiline comment.
1234567891011console.log("Hello, world!"); console.log("Welcome to the console!"); ___ console.log("I'm awesome!"); console.log("Today is a great day!"); console.log("The quick brown fox jumps over the lazy dog."); console.log("JavaScript is the language of the web."); console.log("Bananas are berries, but strawberries aren't."); console.log("Coding is my passion!"); ___ console.log("Don't forget to stay hydrated!");
Use the multi-line comment which starts withΒ /*
Β and ends withΒ */
.
1234567891011console.log("Hello, world!"); console.log("Welcome to the console!"); /* console.log("I'm awesome!"); console.log("Today is a great day!"); console.log("The quick brown fox jumps over the lazy dog."); console.log("JavaScript is the language of the web."); console.log("Bananas are berries, but strawberries aren't."); console.log("Coding is my passion!"); */ console.log("Don't forget to stay hydrated!");
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 6
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.33
Challenge: Write a Multi-Line Comment
Swipe to show menu
Task
Comment out lines 3 through 10 of the code, replacing the ___
with the correct syntax for a multiline comment.
1234567891011console.log("Hello, world!"); console.log("Welcome to the console!"); ___ console.log("I'm awesome!"); console.log("Today is a great day!"); console.log("The quick brown fox jumps over the lazy dog."); console.log("JavaScript is the language of the web."); console.log("Bananas are berries, but strawberries aren't."); console.log("Coding is my passion!"); ___ console.log("Don't forget to stay hydrated!");
Use the multi-line comment which starts withΒ /*
Β and ends withΒ */
.
1234567891011console.log("Hello, world!"); console.log("Welcome to the console!"); /* console.log("I'm awesome!"); console.log("Today is a great day!"); console.log("The quick brown fox jumps over the lazy dog."); console.log("JavaScript is the language of the web."); console.log("Bananas are berries, but strawberries aren't."); console.log("Coding is my passion!"); */ console.log("Don't forget to stay hydrated!");
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 6