Skip to content

Commit 89684c6

Browse files
committed
minor fixes
1 parent e5fc2f1 commit 89684c6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -514,15 +514,15 @@ Array is a special kind of object, suited to storing and managing ordered data i
514514

515515
The declaration:
516516

517-
```js
518-
// square brackets (usual)
519-
let arr = [item1, item2...];
517+
```js
518+
// square brackets (usual)
519+
let arr = [item1, item2...];
520520

521-
// new Array (exceptionally rare)
522-
let arr = new Array(item1, item2...);
523-
```
521+
// new Array (exceptionally rare)
522+
let arr = new Array(item1, item2...);
523+
```
524524

525-
The call to `new Array(number)` creates an array with the given length, but without elements.
525+
The call to `new Array(number)` creates an array with the given length, but without elements.
526526

527527
- The `length` property is the array length or, to be precise, its last numeric index plus one. It is auto-adjusted by array methods.
528528
- If we shorten `length` manually, the array is truncated.

0 commit comments

Comments
 (0)