Update article.md
This commit is contained in:
parent
339535d450
commit
3bf8830f8e
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue