Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文字のjavascript数値表現を取得して、相対的な操作を行う必要があります。つまり、擬似コードで'a'.getNumberRep-'b'.getNumberRepのような操作を実行します。
jsでこれを行うための最良の方法は?
'a'.charCodeAt(0) - 'b'.charCodeAt(0)