File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ when creating new arrays.
11
11
new Array(3); // Result: []
12
12
new Array('3') // Result: ['3']
13
13
14
- In cases when there is only one argument passed to the ` Array ` constructor,
15
- and that argument is a ` Number ` , the constructor will return a new * sparse*
14
+ In cases when there is only one argument passed to the ` Array ` constructor
15
+ and when that argument is a ` Number ` , the constructor will return a new * sparse*
16
16
array with the ` length ` property set to the value of the argument. It should be
17
- noted that ** only** the ` length ` property of the new array will be set this way,
17
+ noted that ** only** the ` length ` property of the new array will be set this way;
18
18
the actual indexes of the array will not be initialized.
19
19
20
20
var arr = new Array(3);
You can’t perform that action at this time.
0 commit comments