title: How to convert letters to numbers in javascript?
body: <p>I have been trying to create a simple javascript program where the user types in words/sentences, and the program shows the numbers you would enter to text it in a flip phone. For instance, if I entered "add" it would output "122". </p>
  
  <p>How would I do this? I have tried a lot of different things, and nothing works. It seems like it should be a simple program. Can you either help me do this, or link me to a similar program?</p>
  
  <p>Thanks.</p>