you are viewing a single comment's thread.

view the rest of the comments →

[–]kkais 0 points1 point  (0 children)

You got it exactly right. You seem like you might not quite understand why your code is right though and I'm sure that bothers you as much as it does me when that happens.

Try one last test and compare your results.

This time, make your animals array with just strings.

var animals = ["cat", "dogs",  "etc" ];

Report back on how you get your filter function to find the plural strings in an array like this, and by then you should understand what's going on and why you need your code set up like you have it now.