Y
Hacker News
new
|
ask
|
show
|
jobs
by
shinuza
4753 days ago
> a.length 0
Same as the article, you are adding properties to a. A is an array, not an hashmap. Any index that is not a number will create a property, not a new index.