The items of an array are called elements. To access an array element, you have to write the array name, followed by square brackets and pass the index value of the element you want to access to the square brackets.
let games = ["Chess", "Table Tennis", "Jenga", "Scrabble"]; console.log(games); //Chess console.log(games); //Table Tennis console.log(games); //Jenga console.log(games); //Scrabble
If you specify an index value that does not exist in the array, you will get
Using the same syntax that you use to access array elements, you can change it simply by assigning a new value. Suppose, you don't like Table Tennis and want to change it with Carrom Board then update it in the following way:
games = "Carrom Board"; console.log(games); //["Chess", "Carrom Board", "Jenga", "Scrabble"]
Since Table Tennis is at first index position, you access it using that value and assign it a new value: Carrom Board.