Question: create a variable that contains an array of at least six different integers. Log your array variable to the console. Write a vunction named 'findSmallest'
create a variable that contains an array of at least six different integers. Log your array variable to the console. Write a vunction named 'findSmallest' that finds the smallest number in an array and returns the result. Note that the function should take an array as input data. Call the function passing in the array you created in step and log the result
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
