Answers for "sort values array js"

1

sort numbers in array javascript

function sortNumber(a, b) {
  return a - b;
}
Arr.sort(sortNumber);
Posted by: Guest on March-01-2020

Browse Popular Code Answers by Language