javascript - Convert number to alphabet letter - Stack Overflow
stackoverflow.com › questions › 36129721Mar 21, 2016 · if (isNaN(number)) {return undefined} number = Math.abs(Math.floor(number)) const dictionary = getDictionary() let index = number % dictionary.length let quotient = number / dictionary.length let result if (number <= dictionary.length) {return numToLetter(number)} //Number is within single digit bounds of our encoding letter alphabet if (quotient >= 1) { //This number was bigger than our dictionary, recursively perform this function until we're done if (index === 0) {quotient--} //Accounts ...