How can I convert a character to its ASCII code using Javascript?
For example, to get 10 from "\n".
"\n".charCodeAt(0);