How could I convert a letter to its corresponding number in JavaScript?
For example:
a = 0
b = 1
c = 2
d = 3
I found this question on converting numbers to letters beyond the 26 character alphabet, but it is asking for the opposite.
Is there a way to do this without a huge array?
See Question&Answers more detail:os