0

Alphabet indexing

https://code.sololearn.com/Wkzw3iH1CIQK/?ref=app Hello everyone, can some please assist, I am learning JS I want to create a code where someone can put a number form 1-26 1 being A and 26 Z. I don’t know how to get rid of the starting point which is zero making my alphabets start at 0 to 25 also I am not sure if this is good practice where I used the toUppercase() is it in the correct place job?

11th Apr 2022, 11:19 AM
Mawande Notununu
Mawande Notununu - avatar
1 Réponse
+ 1
Put a space or 0 at index 0 as value. So that you can have 1-26 indexes for a-z. why to get rid off zero index? You can use like num-1 instead of num..
11th Apr 2022, 11:32 AM
Jayakrishna 🇮🇳