Fix computed property example

I'm sure the fruit variable was supposed to be used somewhere.
This commit is contained in:
Sámal Rasmussen 2017-09-17 00:17:25 +02:00 committed by GitHub
parent 2d4e4693f8
commit cc4d10896e

View file

@ -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
};
```