Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript letters as number

const toChars = n => `${n >= 26 ? toChars(Math.floor(n / 26) - 1) : ''}${'ABCDEFGHIJKLMNOPQRSTUVWXYZ'[n % 26]}`;

// Examples
toChars(0);     // A
toChars(1);     // B
toChars(25);    // Z
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to concurrently run angular and node 
Javascript :: nuxt scroll to top 
Javascript :: nuxt redirect traffic from http to https 
Javascript :: nazmul hassan 
Javascript :: mongoose.connect 
Javascript :: how to change react icon color 
Javascript :: remove array empty values javascript 
Javascript :: minimum flatlist size react native 
Javascript :: how to reset auto numeric js for input 
Javascript :: how to check if object exists in javascript 
Javascript :: js append class 
Javascript :: jquery each array object 
Javascript :: js array intersection object 
Javascript :: angular declare variable in a file 
Javascript :: How to clear localStorage when browser/tab is closing 
Javascript :: remove character at index from string javascript 
Javascript :: how to simulate a keypress in javascript 
Javascript :: angular output 
Javascript :: text and icon on same line react native 
Javascript :: javascript redirect to relative url 
Javascript :: javascript redirect another page 
Javascript :: replace node 
Javascript :: hover jquery 
Javascript :: clear canvas 
Javascript :: transition event listener does not work 
Javascript :: select random from an array 
Javascript :: how to update the object value of any array key based on value 
Javascript :: how to add another schema id on mongodb 
Javascript :: pad js 
Javascript :: get current directory vbscript 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =