Méthodes JavaScript et ce mot-clé
// object containing method
const person = {
name: 'John',
greet: function() { console.log('hello'); }
};
SAMER SAEID
// object containing method
const person = {
name: 'John',
greet: function() { console.log('hello'); }
};
// object containing method
const person = {
name: 'John',
greet: function() { console.log('hello'); }
};