Every character has a unique code. See the character codes here.

Convert a character to its character code:

yourCharacter.charCodeAt()

Convert a character code to its character:

String.fromCharCode(yourCharCode)