Utmaning: Skriv en Multi-Line Kommentar
Uppgift
Kommentera ut rader 3 till 10 av koden, ersätt ___
med korrekt syntax för en flerradig kommentar.
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!");
Använd flerradskommentaren som börjar med /*
och slutar med */
.
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!");
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 6
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 2.33
Utmaning: Skriv en Multi-Line Kommentar
Svep för att visa menyn
Uppgift
Kommentera ut rader 3 till 10 av koden, ersätt ___
med korrekt syntax för en flerradig kommentar.
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!");
Använd flerradskommentaren som börjar med /*
och slutar med */
.
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!");
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 6