Web Programming (Font-End, Back-End)
You can notice that each cell is indexed, and the index start from zero. To access, 2nd person in the Array, we will use the index operator with the array name. For example, Persons refers to the second element in the array called Persons. In the above code, we added person 4 to the array using the statement Persons = “Person 4”. That statement will create a new cell at index location 3 and stores the new person’s name.