How to get A ASCII Value of Any character

alert(Asc("a"));

alert(Asc("B"));