26 karakterden hesapladığımız zaman, şöyle bi' sonuç çıkacaktır.

https://jsfiddle.net/xogec0L4/

<input type="text" onkeyup="degisti()" placeholder="buraya yazın" id="nedir">
<br>
<label id="sonuc"></label>
function degisti(){
var nedir = document.getElementById('nedir').value, sonuc = "";

for (var i=0,uzunluk=nedir.length; i<uzunluk;i++) if(/^[a-zA-Z()]+$/.test(nedir[i])) sonuc += nedir[i].charCodeAt(0) - 96;

document.getElementById('sonuc').innerHTML = sonuc;
}