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

278 B

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

myArray[1] = "anything we want";