Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
a = `10
13
10
9
14
10`
b = a.split("\n")
c = b.map(a => Number(a))
d = c.sort((a, b) => b-a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment