Closed RazvanBugoi closed 4 years ago
https://www.codewars.com/kata/558fc85d8fd1938afb000014/train/javascript
function sumTwoSmallestNumbers(numbers) { return numbers.sort((a, b) => a - b)[0] + numbers.sort( (a, b) => a - b)[1]; }
What if one of the integers was negative?
https://www.codewars.com/kata/558fc85d8fd1938afb000014/train/javascript