Question: Write a JavaScript function that takes an array A of integer values and returns an array B containing all elements of A that are either
Write a JavaScript function that takes an array A of integer values and returns an array B containing all elements of A that are either a multiple of 3 or 5. You must use the filter method to implement your function. Test your program on the array A = [12, 5, 8, 130, 44] and output the resulting array to the terminal window. Source File Name: filter.js.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
