JScript  

toUpperCase Method

Returns a string where all alphabetic characters have been converted to uppercase.

strVariable.toUpperCase( )
"String Literal".toUpperCase( ) 

Remarks

The toUpperCase method has no effect on non-alphabetic characters.

Example

The following example demonstrates the effects of the toUpperCase method:

var strVariable = "This is a STRING object";
strVariable = strVariable.toUpperCase( );

The value of strVariable after the last statement is:

THIS IS A STRING OBJECT

Requirements

Version 1

See Also

String Object Methods | String Object Properties | toLowerCase Method

Applies To: String Object