let arr = [5, 4, 7, 8, 9, 10, 20, 30];
let val = arr.filter((value)=>{
return (value%10 == 0);
});
console.log(val); // [10, 20, 30]
let arr = [5, 4, 7, 8, 9, 10, 20, 30];
let val = arr.filter((value)=>{
return (value%10 == 0);
});
console.log(val); // [10, 20, 30]