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.

Type your JavaScript solution code here:


This is a function exercise. Write a JavaScript function as described. Do not write a complete program; just the function(s) above.

You must log in before you can solve this problem.

Log In

Need help?

If you do not understand how to solve an exercise or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect tests, etc.), please

Is there a problem? Contact a site administrator.

©, all rights reserved.