[JavaScript] Return an array with only even numbers

We take advantage of the built-in filter function.

Comments