How do I print out each individual contents of the array?


#1

Question

How do I print out each individual contents of the array?

Answer

You’d just use [] notation to access elements at each index of the array. Since there are three elements in the array you’d access it and print it out three times at the respective index.