Skip to content

Commit bbf3a44

Browse files
Update 1-js/05-data-types/04-array/article.md
Co-authored-by: Bogdan Bacoșcă <bogdanbacosca@protonmail.com>
1 parent cd988dd commit bbf3a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

9999
Let's say we want the last element of the array.
100100

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

103103
Although, in JavaScript it won't work. The result will be `undefined`, because the index in square brackets is treated literally.
104104

0 commit comments

Comments
 (0)