how to apply filter method on this

Now it’s time to implement the filter function to convert a given array into one in which all elements are those which are multiples of 10. Given the array, input = [….], can you write a filter function on this array and reduce it to the one required? The input array has already been provided in the stub code. Store the output in a new array called "output" and print the resulting array.

To verify your solution, you can look at the solution code of this question after submitting your code.

input is

var input = [23,45,678,90,33,21,780,670,498,7493,58940,6565,900,370,1299,1300]

I tried this:

var input = [23,45,678,90,33,21,780,670,498,7493,58940,6565,900,370,1299,1300]
var output = [];
function outputthis(input){
    if(input % 10 == 0){

19 thoughts on “how to apply filter method on this”

  1. 389223 861865Hi. Cool article. There can be a problem with the internet internet site in firefox, and you may want to test this The browser may be the marketplace leader and a huge portion of folks will miss your outstanding writing due to this problem. 783773


Leave a Comment