Question: Please add comments in your code Write a JavaScript function that takes an array of 8 positive integers as input parameter, and retums an array

Please add comments in your code
Write a JavaScript function that takes an array of 8 positive integers as input parameter, and retums an array of integers containing only the numbers that are either: divisible by 3; OR even but NOT divisible by 4 Additional Guidelines Use loops and conditional statements Print the output of the function in the browser console Use math lib to generate a random array of integers as input. There is no console input here because the JS file will run in the browser. Each refresh of the browser should have different outputs (due to the random input). The HTML file itself does not have to contain anything Do not use any other JavaScript library Sample console outputs: Inspector Console Debugger 11 Netw III 7 Filter Output Input: [36, 5, 82, 19, 90, 65, 2, 33] Output: [82, 90, 2, 33] Inspector Console Debugger 111 Y Filter Output Input: (40, 1, 88, 91, 89, 76, 67, 43] Output: 0]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
