Fix computed property example
I'm sure the fruit variable was supposed to be used somewhere.
This commit is contained in:
parent
2d4e4693f8
commit
cc4d10896e
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ We can use more complex expressions inside square brackets:
|
|||
```js
|
||||
let fruit = 'apple';
|
||||
let bag = {
|
||||
['apple' + 'Computers']: 5 // bag.appleComputers = 5
|
||||
[fruit + 'Computers']: 5 // bag.appleComputers = 5
|
||||
};
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue