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 d78b01e

Browse files
Merge pull request #3906 from cathoderay/master
Minor grammar improvement
2 parents 5e893cf + 9ef986e commit d78b01e

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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Let's say we want the last element of the array.
100100

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

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

105105
We can explicitly calculate the last element index and then access it: `fruits[fruits.length - 1]`.
106106

0 commit comments

Comments
(0)

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