tanaka's Programming Memo

プログラミングについてのメモ。

JavaScriptで文字コードを求める

以下で、文字列の1文字目であるaの文字コードを返す。

alert("a".charCodeAt(0));