Exercices CM 1

This commit is contained in:
khannurien
2026-01-16 20:21:02 +01:00
parent ed3100a3e7
commit 1eb0ffc866
7 changed files with 230 additions and 0 deletions

6
exercice2.js Normal file
View File

@@ -0,0 +1,6 @@
function afficherUtilisateur(user) {
console.log(`${user.nom} a ${user.age} ans`);
}
afficherUtilisateur({ nom: "Alice", age: 25 });
afficherUtilisateur({ nom: "Bob" }); // manque age