Problem 22. Create an array of numbers and take input from the user to add numbers to this array. Filter for numbers divisible by 10 from a given array.

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]