title: Convert letter to number in JavaScript
body: <p>I would like to know how to convert each alphabetic character entered to a number.</p>
  
  <p>e.g. a=1, b=2 ,c=3 up to z=26  </p>
  
  <p>In C I had managed to do something similar, by taking a character input and displaying it as an integer. But I'm not sure how I would do this in JavaScript. </p>