freeCodeCamp/guide/english/certifications/javascript-algorithms-and-d.../basic-data-structures/access-an-arrays-contents-u.../index.md

12 lines
278 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Access an Array's Contents Using Bracket Notation
---
## Access an Array's Contents Using Bracket Notation
- Remember the arrays index begins at 0 so the postion of b will be located in `myArray[1]`.
## Solution
```javascript
myArray[1] = "anything we want";
```