Skip to content

Conversation

@daphne6
Copy link
Collaborator

@daphne6 daphne6 commented Aug 26, 2020

別に変える必要はなかったですね…

@chelproc
Copy link
Contributor

そうですね笑

```

配列リテラルでは、`[`から`]`までの領域の中に、複数の値をコンマ区切りで記述します。各値には0から始まる整数が自動的にキーとして割り当てられます。キー名が数値となっているため、各要素(プロパティ)にアクセスするためには、ブラケット記法を使用する必要があります。つまり、`myFriends.1`という記法は許されません
配列リテラルでは、`[`から`]`までの領域の中に、複数の値をコンマ区切りで記述します。各値には0から始まる整数が自動的にキーとして割り当てられます。キー名が数値となっているため、各要素(プロパティ)にアクセスするためには、ブラケット記法を使用する必要があります。つまり、`myFriends.1`という記法はエラーとなります
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

いいですね

@daphne6 daphne6 merged commit 06913af into master Aug 26, 2020
@chelproc chelproc deleted the fix-a-little branch April 9, 2022 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants