Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Task - Commenting out Code | Getting Started
Introduction to JavaScript
course content

Contenu du cours

Introduction to JavaScript

Introduction to JavaScript

1. Getting Started
2. Manipulating Data
3. Conditional Statements

book
Task - Commenting out Code

Tâche

Swipe to start coding

Given is a simple JavaScript program.

Some lines of the program contain syntax errors. This is a classic scenario where we might sometimes want to temporarily ignore some lines of code which are incorrect - of course to fix them later.

Your task is to find and comment out the lines that are causing errors, so that the program runs correctly. Use multi-line comments for this purpose.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 13
toggle bottom row

book
Task - Commenting out Code

Tâche

Swipe to start coding

Given is a simple JavaScript program.

Some lines of the program contain syntax errors. This is a classic scenario where we might sometimes want to temporarily ignore some lines of code which are incorrect - of course to fix them later.

Your task is to find and comment out the lines that are causing errors, so that the program runs correctly. Use multi-line comments for this purpose.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 13
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt