Update article.md

This commit is contained in:
Ilya Kantor 2021-05-13 17:37:44 +03:00 committed by GitHub
parent 339535d450
commit 3bf8830f8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -379,9 +379,7 @@ alert( arr[0] ); // undefined! no elements.
alert( arr.length ); // length 2
```
In the code above, `new Array(number)` has all elements `undefined`.
To evade such surprises, we usually use square brackets, unless we really know what we're doing.
To avoid such surprises, we usually use square brackets, unless we really know what we're doing.
## Multidimensional arrays