Skip to content

Instantly share code, notes, and snippets.

@Arxero
Created January 25, 2019 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arxero/fbc4202fc19b4f7aa8095c717db6173c to your computer and use it in GitHub Desktop.
Save Arxero/fbc4202fc19b4f7aa8095c717db6173c to your computer and use it in GitHub Desktop.
function solution(n1, n2, n3) {
let result = ''
let numarray = [n1, n2, n3].sort((a, b) => b - a).forEach(x => {
result += x + '\n'
})
console.log(result)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment