Exercices CM 1
This commit is contained in:
6
exercice2.js
Normal file
6
exercice2.js
Normal 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
|
||||
Reference in New Issue
Block a user