Determines whether or not a character is an alphabetic character.

Syntax

JSV_isAlpha(expC)

Prototype

expC.isAlpha()

Returns

The isAlpha function returns true if the expression expC is an alphabetc character; otherwise, false.

Parameters

The isAlpha function uses the following argument.

Argument Description
expC The character that is tested to be an alphabetic character.

Remarks

Alphabetic characters include the letters a through z and A through Z.

Dependencies

n/a

Example

The following lines of code

var testString = "Ab1";
document.write( "The first character of " + 
    testString.bold() + 
    " is alphabetic? " + 
    JSV_isAlpha(testString.charAt(0)) );
document.write( "The second character of " + 
    testString.bold() + 
    " is alphabetic? " + 
    JSV_isAlpha(testString.charAt(1)) );
document.write( "The third character of " + 
    testString.bold() + 
    " is alphabetic? " + 
    JSV_isAlpha(testString.charAt(2)) );

produce