Q. Your task is to make two functions (max and min, or maximum and minimum, etc., depending on the language) that receive a list of integers as input and return, respectively, the largest and lowest number in that list.
Examples (Input -> Output)
const max = (list)=>{
return Math.max(...list);
}
const min = (list)=>{
return Math.min(...list);
}