The array is the foundational Data Structure and a list of elements.
Let’s take an example:
Prashant says, he has 3 friends, and their names are Sachin, Rohit, & Tinkal.
Can we say it’s a list? Yes, we can make a list of Prashant’s friends.
friendsOfPrashant = [‘Sachin’, ‘Rohit’, ‘Tinkal’]
Basically, Prashant did nothing here but created a fancy list of his friends.
So, the friendsOfPrashant is an array, and inside the square brackets, “Sachin”, “Rohit”, & “Tinkal” are elements of the array.
Read Complete At: What is Array? — Let’s take it easy (technical0812.com)