Réponse
const toto = {
nom: "Tutu",
prenom: "Toto",
sePresenter: function(){
console.log("Bonjour, je m'appelle " +
this.prenom + " " + this.nom);
}
}
Colonne
Explication
Syntaxe JSON, exemple d'utilisation de l'objet litéral : toto.sePresenter();
Question
Créez un objet littéral toto ayant comme propriétés (nom, prenom, et une fonction sePresenter ) ?
Thématique