Determines whether or not a character is a upper case alphabetic character.

Syntax

JSV_isUpper(expC)

Prototype

expC.isUpper()

Returns

The isUpper function returns true if expC is an upper case alphabetic character; otherwise, false.

Parameters

The isUpper function uses the following argument.

Argument Description
expC The character expression that is tested to be a upper case alphabetic character.

Remarks

Upper case alphabetic characters include the letters A through Z.

Dependencies

n/a

Example

The following lines of code

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

produce