Broad Hint:

If myArray is your local argument variable name, then you would be looking at myArray.length and myArray[myCounter] within your generalized function.