When we declare an array using any programming language, what happens behind the scenes, how does an array work, what is the interaction of the array with the memory, blah blah blah? Ah, Don't Panic, Let's make it easy.
Let's take an example array:
friendsOfSteve = ['Tim', 'Bill', 'Elon']
Now, what we have is, an array friendsOfSteve, and 3 elements inside the array: Tim', 'Bill', & 'Elon' & we know the count of the elements in an array starts with 0.
What will happen when we'll create this array in our code of any language?
It will first allocate a contiguous set of empty cells for use in the program. Every cell in computer memory has a specific address (It's like House No.). Each cell's memory address is one number greater than the previous cell's address.
It will create an array to hold 3 elements ('Tim', 'Bill', 'Elon')