first comit

This commit is contained in:
Johan
2025-12-15 14:53:51 +01:00
commit 9db552c24f
88 changed files with 797 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
const personne = {
nom: "Carole",
age: 35,
sePresenter: function() {
console.log(`Bonjour, je m'appelle ${this.nom} et j'ai ${this.age} ans.`);
}
// Syntaxe alternative plus courte :
// sePresenter() {
// console.log(`Bonjour, je m'appelle ${this.nom} et j'ai ${this.age} ans.`);
// }
};
personne.sePresenter();