Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.