This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mousseAuChocolat() { | |
let saladier = 'un saladier'; | |
} | |
// le saladier n'existe pas ici |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mousseAuChocolat(avecDuBeurre = true, chocolat = 'noir') {} | |
mousseAuChocolat(); // Avec du beurre et du chocolat noir | |
mousseAuChocolat(false); // Sans beurre et du chocolat noir | |
mousseAuChocolat(true, 'au lait'); // Avec du beurre et du chocolat au lait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mousseAuChocolat(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mousseAuChocolat() { | |
// Faire cuire le chocolat au bain marie | |
// Séparer le blanc des jaunes | |
// Faire monter les blancs en neige | |
// Ajouter les jaunes au chocolat | |
// Incorporer les blancs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Vegan OU végétarien | |
if ((menuVegan === true) || (menuVegetarien === true)) {} | |
// Vegan ET végétarien | |
if ((menuVegan === true) && (menuVegetarien === true)) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (menuVegan === true) { | |
// Ne pas ajouter la viande ni les oeufs | |
} else if (menuVegetarien === true) { | |
// Ne pas ajouter la viande | |
} else { | |
// Ajouter la viande | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (const oeuf of boiteAOeufs) { | |
// Action qui va séparer le blanc du jaune pour chaque oeuf | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (let i = 0; i < 10; i += 1) { | |
// Une action quelconque | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bouteilleDeLait = 'du lait'; | |
bouteilleDeLait = 'du champagne !'; // Impossible, va provoquer une erreur |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bouteilleDeLait = 'du champagne !'; |