sum dwie pierwsze minimalne liczby w tablicy
function sumTwoSmallestNumbers(numbers){
function sortNumber(a , b){
return a - b
}
numbers.sort(sortNumber)
// console.log(numbers)
return numbers[0] + numbers[1]
}
// sumTwoSmallestNumbers([5, 8, 12, 19, 22])
sumTwoSmallestNumbers([15, 28, 4, 2, 43])
Wide-eyed Wolf