filtrar números uniformes javascript
var arr = [-200, -163, -26, -4, 0, 7, 76];
var evens = arr.filter(x => x % 2 === 0);
// Array(5) [ -200, -26, -4, 0, 76 ]
Marton
var arr = [-200, -163, -26, -4, 0, 7, 76];
var evens = arr.filter(x => x % 2 === 0);
// Array(5) [ -200, -26, -4, 0, 76 ]
var arr1 = [-200, -163, -26, -4, 0, 7, 76];
var evens = arr1.filter(function(x) {
return x % 2 === 0;
})
console.log(evens);