What will be printed to the console when executing myObject.show()?
const myObject = {
name: 'Diego',
show: function() {
console.log(this.name);
}
};
myObject.show();
What will be printed to the console when executing myObject.show()?
const myObject = {
name: 'Diego',
show: function() {
console.log(this.name);
}
};
myObject.show();