tags:

views:

12928

answers:

1

How can I convert a character to its ASCII code using Javascript?

For example, to get 10 from "\n".

+26  A: 
"\n".charCodeAt(0);
Jim
+1 Excellent, cheers
Andreas Grech
this just helped me out a bunch +1
Jared