charCodeAt()

Description :

This method returns the unicode of the character from the given string at the specified index.

Please note that the first character index of the string is "0" and last index is "string.length - 1"

Syntax :

string.charCodeAt(index)

Input Parameters :

Index
The character index to be searched. The value should be as integer

Return Values :

Returns the character if it is found at the specified index otherwise returns "NaN"


Test this method :

Test Result :   
Your Code :