Look at the code inside the loop.
You have a reference to the array there in the form
thisArr[p]
The bracket notation allows us to index into the array using the index value p
While p is increasing from 0 to start and then goes up and up till it reaches the value of the length of the array at which point the loop conditional gives a false and shuts off the loop.