Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptgetters and settersSingle-choice MCQ

Why does assigning to `obj.full` silently do nothing in non-strict mode here, rather than splitting the name?

const obj = { first: 'Ada', last: 'Lovelace', get full() { return `${this.first} ${this.last}`; } }; obj.full = 'Grace Hopper'; console.log(obj.full);