7 lines
189 B
JavaScript
7 lines
189 B
JavaScript
function afficherUtilisateur(user) {
|
|
console.log(`${user.nom} a ${user.age} ans`);
|
|
}
|
|
|
|
afficherUtilisateur({ nom: "Alice", age: 25 });
|
|
afficherUtilisateur({ nom: "Bob" }); // manque age
|