Skip to content

Commit 576005b

Browse files
authored
minor fixes
1 parent 98e7e6b commit 576005b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ The "trailing comma" style makes it easier to insert/remove items, because all l
9696

9797
[recent browser="new"]
9898

99-
Let's say we want a last element of the array.
99+
Let's say we want the last element of the array.
100100

101101
Some programming languages allow to use negative indexes for the same purpose, like `fruits[-1]`.
102102

@@ -403,7 +403,7 @@ It's rarely used, because square brackets `[]` are shorter. Also there's a trick
403403

404404
If `new Array` is called with a single argument which is a number, then it creates an array *without items, but with the given length*.
405405

406-
Let's see how one can shoot themself in the foot:
406+
Let's see how one can shoot themselves in the foot:
407407

408408
```js run
409409
let arr = new Array(2); // will it create an array of [2] ?

0 commit comments

Comments
 (0)