Skip to content

Instantly share code, notes, and snippets.

View zachattack's full-sized avatar
🎯
Focusing

Zach zachattack

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am zachattack on github.
  • I am hanzouzach (https://keybase.io/hanzouzach) on keybase.
  • I have a public key ASBrJ82vqjj04B61UfelKgBVsyaNndg2imm9_9AnskHZQAo

To claim this, I am signing this object:

@zachattack
zachattack / Sort Numbers Descending
Created July 9, 2019 15:24
JS Descending Sort Numbers
function descendingOrder(n){
// Store your string manipulation in a results variable.
let results;
// Make sure the number isn't negative.
if(n>=0) {
return Number(results = String(n).split('').sort().reverse().join(""));
}
return false;
}