# element

[JS](https://lochiwei.gitbook.io/web/js) ⟩ [object](https://lochiwei.gitbook.io/web/js/val/obj) ⟩ [built-in](https://lochiwei.gitbook.io/web/js/val/builtin) ⟩ [Array](https://lochiwei.gitbook.io/web/js/val/builtin/arr) ⟩ element

{% hint style="success" %}
the [..](https://lochiwei.gitbook.io/web/js/val "mention")(s) stored in the [](https://lochiwei.gitbook.io/web/js/val/builtin/arr "mention").
{% endhint %}

{% tabs %}
{% tab title="⭐️ 重點" %}
{% hint style="success" %} <mark style="color:purple;">**array elements**</mark> are usually <mark style="color:yellow;">**accessed**</mark> by [property-access-expression](https://lochiwei.gitbook.io/web/js/val/obj/prop/access/property-access-expression "mention"), <mark style="color:yellow;">**using**</mark> [dot-notation-.](https://lochiwei.gitbook.io/web/js/val/obj/prop/access/dot-notation-. "mention") <mark style="color:yellow;">**/**</mark> [bracket-notation](https://lochiwei.gitbook.io/web/js/val/obj/prop/access/bracket-notation "mention").
{% endhint %}

{% hint style="warning" %}
[**deleting**](https://lochiwei.gitbook.io/web/js/val/obj/prop/create/delete) an array <mark style="color:purple;">**element**</mark> leaves a “<mark style="color:yellow;">**hole**</mark>” in the array and <mark style="color:red;">**does not**</mark>**&#x20;**<mark style="color:yellow;">**change**</mark> the array’s <mark style="color:yellow;">**length**</mark>:exclamation: ([sparse](https://lochiwei.gitbook.io/web/js/val/builtin/arr/sparse "mention"))
{% endhint %}
{% endtab %}

{% tab title="👥 相關" %}

* :white\_check\_mark: <mark style="color:purple;">**array elements**</mark> are <mark style="color:yellow;">**accessed**</mark> throught [index](https://lochiwei.gitbook.io/web/js/val/builtin/arr/element/index "mention") using [bracket-notation](https://lochiwei.gitbook.io/web/js/val/obj/prop/access/bracket-notation "mention").
* array <mark style="color:purple;">**element**</mark> is a [lvalue](https://lochiwei.gitbook.io/web/js/grammar/op/term/lvalue "mention").
* [**...iterable**](https://lochiwei.gitbook.io/web/js/grammar/op/spread) <mark style="color:yellow;">**expands**</mark> an [**iterable**](https://lochiwei.gitbook.io/web/js/iteration/iterable) in places where <mark style="color:purple;">**elements**</mark> are expected.&#x20;
  {% endtab %}

{% tab title="📗 參考" %}
\*
{% endtab %}

{% tab title="📘 手冊" %}

* Guides ⟩ Arrays ⟩ [Accessing and modifying array items](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Arrays#accessing_and_modifying_array_items) ⭐️
  {% endtab %}
  {% endtabs %}
