These codes or numbers can also be called character codes or their equivalent number.
event.charCode, which is a property of the keyboard event
keypress, prints the character code of any character on the keyboard.
The example below reveals the
charCode of any character entered in the input box below. The
keypress event is used to determine the character pressed.
charCoderange of lowecase characters
Alphabets have their
charCode values in a particular range. Lowercase alphabets fall within the range of 97 - 122.
The trick to determine if a character is lowercase lies in knowing its value in the range 97 - 122.
From the code above, we can see that any
charChode that falls outside the range of 97 - 122 is not lowercase.
View all Courses