Contenu du cours
Introduction à JavaScript
Introduction à JavaScript
4. Instructions Conditionnelles
Défi : Commentaire Multi-Ligne
Tâche
Commentez les lignes 3 à 10 du code, en remplaçant le ___
par la syntaxe correcte pour un commentaire multiligne.
console.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!");
Utilisez le commentaire multi-ligne qui commence par /*
et se termine par */
.
console.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!");
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 6