Array.prototype.filter() Lab
Easy
1
100.0% Acceptance
In this lab, you will create a filterEvens
function using the Array.prototype.filter() method, given an array of numbers (including negative numbers). The function should return a new array containing only even numbers and should not modify the original array. The filterEvens
function must be exported as the default module from 'index.js'.