What is an array?

An array is a data structure that stores a collection of elements of the same type. Arrays are often used to store lists of numbers, strings, or objects. An array is like a collection of slots in which you can store different items, like toys or candies, and you can easily find them by remembering their order numbers.