When you are using multiple variables into one single representation
An array is a collection of variables that can be called as a single variable. It helps reusability in your code.
For example, you can have an array of all your classmates name rather than declaring them one by one. You can use this array when selecting/filtering a specific name that you might need in the future.