Definition - What does Subarray mean?
Programmers can perform many of the same options on a subarray that they can perform on the entire array. Allowing operations on a subarray helps make these tools more versatile for storing multiple variables in a single designated set.
Techopedia explains Subarray
In using a subarray, programmers have to pay the same kind of attention to consistency that they would when using an entire array or a single variable. This includes making sure that the values passed from one method or function to another don’t get changed through a bug or glitch in the code, and that all parts of the code that need these values can access them. It can be useful to go through a written program in debug mode to look at how values are assessed line by line if there is any problem with the use of a subarray.