Skip to content

Commit cc4d108

Browse files
author
Sámal Rasmussen
authored
Fix computed property example
I'm sure the fruit variable was supposed to be used somewhere.
1 parent 2d4e469 commit cc4d108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/04-object-basics/01-object/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ We can use more complex expressions inside square brackets:
189189
```js
190190
let fruit = 'apple';
191191
let bag = {
192-
['apple' + 'Computers']: 5 // bag.appleComputers = 5
192+
[fruit + 'Computers']: 5 // bag.appleComputers = 5
193193
};
194194
```
195195

0 commit comments

Comments
 (0)