In this little assignment you are given a string of space separated numbers, and have to return the highest and lowest number.
해석 : 띄어쓰기 되어있는 숫자들의 스트링에서 가장 큰 수와 작은 수를 리턴하라. 모든 수는 정수이며, 최소 하나의 숫자가 있고, 아웃풋 스트링은 '큰 수+띄어쓰기+작은 수'여야 한다.
highAndLow("1 2 3 4 5"); // return "5 1"
highAndLow("1 2 -3 4 5"); // return "5 -3"
highAndLow("1 9 3 4 -5"); // return "9 -5"
function highAndLow(numbers){
return `${Math.max(...numbers.split(' '))} ${Math.min(...numbers.split(' '))}`
}