logo CodeStepByStep logo

removeEvenLength

Language/Type: JavaScript arrays

Write a function named removeEvenLength that accepts an array of strings as a parameter and that removes all of the strings of even length from the array. For example, if an array variable named arr contains the values ["hi", "there", "how", "is", "it", "going", "good", "sirs"], the call of removeEvenLength(arr) would change it to store ["there", "how", "going"].

You may assume the array passed is non-null and contains only Strings.

Function: Write a JavaScript function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.