Im working on a problem in javascript where I am supposed to write a function that takes in an array of integers, and a string that will be either \'even\' or \'odd\'. The f