An Array is used to store multiple values in a single variable.
This can be used to pass the group of related values as data to the $.ajax for processing and get the response.
E.g. pass all checked checkboxes values, selected values from the list.
In this tutorial, I show how you can pass JavaScript Array to an AJAX request with an example.