97
rated 0 times
[
99]
[
2]
/ answers: 1 / hits: 165122
/ 10 Years ago, tue, march 25, 2014, 12:00:00
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?
More From » javascript