commit
5bd6424ef2
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ let john = { name: "John", *!*id: 1*/!* };
|
||||||
let visitsCounts = {};
|
let visitsCounts = {};
|
||||||
|
|
||||||
// now store the value by id
|
// now store the value by id
|
||||||
visitCounts[john.id] = 123;
|
visitsCounts[john.id] = 123;
|
||||||
|
|
||||||
alert( visitsCounts[john.id] ); // 123
|
alert( visitsCounts[john.id] ); // 123
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue