Advertisement
bai_onzi

zad1 arrays

Feb 15th, 2023
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let n = gets().split(',' + ' ').map(Number);
  2. let sorted = n.reverse().sort((a, b) => b - a);
  3.  
  4. console.log(sorted);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement