SHARE
TWEET

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

a guest Aug 13th, 2019 196 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top