Question: 1. Create a function named compareData that will accept an array call nums and variable called x. Using a loop, display every value of nums
1. Create a function named compareData that will accept an array call nums and variable called x. Using a loop, display every value of nums that exceeds x. For example, the fallowing code: Var x = 4; Var nums = [5, 3, 4, 6, 2, 1, 0]; compareData(muns,x); will display: 56
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
