You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

286 B

Extremes

Instructions

Create a function extreme that given an array of number find the bigest and smallest number of the array

Examples:

extreme([-1, 0, 10, 5]) // -> { bigest: 10, smallest: -1 }
extreme([22, 7, 32, 99, 54]) // -> { bigest: 99, smallest: 7 }