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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!