Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3bf8830

Browse files
authored
Update article.md
1 parent 339535d commit 3bf8830

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎1-js/05-data-types/04-array/article.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,7 @@ alert( arr[0] ); // undefined! no elements.
379379
alert( arr.length ); // length 2
380380
```
381381

382-
In the code above, `new Array(number)` has all elements `undefined`.
383-
384-
To evade such surprises, we usually use square brackets, unless we really know what we're doing.
382+
To avoid such surprises, we usually use square brackets, unless we really know what we're doing.
385383

386384
## Multidimensional arrays
387385

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /