Entering Range of Characters

Write a javascript code to match a character in a range of characters.

Output :