The abbreviation char is used as a reserved keyword in a number of programming languages, such as C, C++, C#, and Java. It is short for character, which is a data type that holds one character (letter, number, etc.) of data. For example, the value of a char variable could be any one-character value, such as 'A', '4', or '#'.
mystring = "computer hope";
The above code would send an alert with the text m, since c is at the 0 position, o is at the 1 position, and m is at the 2 position.