Clean js
by michae1
JavaScript
const obj = {
name: 'Xavier',
getName() {
return this.name
}
}
const dedicated = obj.getName
dedicated();
// output, why, how to fix
by michae1
const obj = {
name: 'Xavier',
getName() {
return this.name
}
}
const dedicated = obj.getName
dedicated();
// output, why, how to fix