Skip to content

Clarify that the array contains a hole #38729

@mishrasur7

Description

@mishrasur7

MDN URL

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types

What specific section or headline is this issue about?

Literals > Array

What information was incorrect, unhelpful, or incomplete?

Image

What did you expect to see?

In the following example, the length of the array is three. There is no myList[3] and myList[1] is empty. All other commas in the list indicate a new element.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

I think this change makes more clear to understand and read.

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:JSJavaScript docsgood first issueA good issue for newcomers to get started with.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions