4 ms·
"node".split("").sort.join("")
by film42 4y ago
"node".split("").sort.join("")
- msoad 4y agowat
- chrisco255 4y agoSorting the letters by alphabetical order in "node" by converting each letter to its own string in an array. Slick JavaScript, basically.
- hbn 4y agoThis is the correct official answer except you didn't invoke sort "node".split("").sort().join("")
- film42 4y agoI write a lot of ruby, I guess...