Created
January 25, 2019 18:57
-
-
Save Arxero/fbc4202fc19b4f7aa8095c717db6173c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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