This commit is contained in:
Marius Virbičianskas 2017-04-19 07:39:00 +03:00 committed by GitHub
parent f57be1bbb3
commit ffeca57450

View file

@ -144,7 +144,7 @@ let obj = {
0: "test" // same as "0": "test"
}
// bot alerts access the same property (the number 0 is converted to string "0")
// both alerts access the same property (the number 0 is converted to string "0")
alert( obj["0"] ); // test
alert( obj[0] ); // test (same property)
```