Question: Needs to be in HTML Write a defining table and a function named countEvens that counts and returns the number of even integers in an
Needs to be in HTML
Write a defining table and a function named countEvens that counts and returns the number of even integers in an array. The function must have this header:
function countEvens(list)
Make sure that you write your functions to handle an array of any size.
Hint: To test your function, write a separate function that is called from the onclick attribute of a button. This separate test function should create one or more arrays, call the countEvens and multiply functions, and display the values returned from countEvens and multiply.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
