How to reverse String.fromCharCode?

IAdapter picture IAdapter · Jan 15, 2010 · Viewed 35.9k times · Source

String.fromCharCode(72) gives H. How to get number 72 from char H?

Answer

Silvio Donnini picture Silvio Donnini · Jan 15, 2010
'H'.charCodeAt(0)