Skip to content

Commit 6b2dbdc

Browse files
authored
Q12 solution fix
1 parent 4c09afe commit 6b2dbdc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

challenges/objects.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,12 @@ The lookup happens at the object level initially and if the key is not found, pr
339339
const obj = {};
340340

341341
Object.defineProperty(obj, 'data', {
342+
_data: 0,
342343
get() {
343-
return data;
344+
return this._data;
344345
},
345346
set(value) {
346-
data = value;
347+
this._data = value;
347348
}
348349
});
349350
```

0 commit comments

Comments
 (0)