Determines whether or not a character is an alphabetic character.
JSV_isAlpha(expC)
expC.isAlpha()
The isAlpha function returns true if the expression expC is an alphabetc character; otherwise, false.
The isAlpha function uses the following argument.
Argument | Description |
expC | The character that is tested to be an alphabetic character. |
Alphabetic characters include the letters a through z and A through Z.
n/a
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
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.