Advertisement
dabidabidesh

sortNumbers1

May 23rd, 2020
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sortNumbers1(a, b, c) {
  2.  
  3.   let arr = [a, b, c]
  4.  
  5.   arr.sort((a, b) => b - a)
  6.  
  7.   console.log(`${arr[0]}\n${arr[1]}\n${arr[2]}`)
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement