Test Cases (0/3)
    • filter([1,2,3,4,5,6,7,8,9,10], function(num){ return num %2 == 0}) to return [2,4,6,8,10]

    • filter([-3,-1,1,3,-5,15,-20], function(num){ return num>0; }) to return [1,3,15]

    • filter([-3,-1,1,3,-5,15,-20], function(num){ return num<0; }) to return [-3,-1,-5,-20]

    Output
    Michael
      (0/300)