toUpperCase()
String
instance method getterS2C Home
« Globals « String « toUpperCase()
Description
Returns the value of a string converted to upper case.
- The string to be converted is not modified.
Syntax
Signature | Description |
---|---|
aString.toUpperCase() | Returns the value of a string converted to upper case. |
Parameters
None.
Examples
The code below returns the value of a string converted to upper case.
// Create a String object.
someString = new String("Learn Javascript");
// Return string value converted to upper case.
alert(someString.toUpperCase());
Related Tutorials
JavaScript Basic Tutorials - Lesson 8 - Strings