🔸element index
JS ⟩ object ⟩ built-in ⟩ Array ⟩ element ⟩ index
(String)
array elements are numbered, starting from 0, this number is called the element's index, an index must be non-negtive integers❗
JavaScript arrays have no notion of an “out of bounds” error. When you try to query a nonexistent property of any object, you don’t get an error; you simply get undefined.
✅ element index is accessed throught bracket notation [].
Guides ⟩ Arrays ⟩ Accessing and modifying array items ⭐️
Last updated
Was this helpful?