Guest User

01.Sort Numbers - More Exercises from Basic Syntax - SoftUni

a guest
Aug 13th, 2019
513
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sortNumbers(firstNum, secondNum, thirdNum) {
  2.     let arrayNumbers = [];
  3.     arrayNumbers.push(firstNum, secondNum, thirdNum);
  4.     let sorted = arrayNumbers.sort((a, b) => b - a);
  5.     console.log(sorted.join('\n'));
  6. }
RAW Paste Data