Métodos JavaScript e esta palavra -chave
// 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'); }
};