toLocaleUpperCase()  String  instance method getterS2C Home  « Globals « String « toLocaleUpperCase()

Description

Returns the value of a string converted to upper case dependant upon locale.

  • Generally works the same as the toUpperCase() method. For some locales, where case mappings do not match the Unicode default, results may vary.
  • The string to be converted is not modified.

Syntax

Signature Description
aString.toLocaleUpperCase()Returns the value of a string converted to upper case dependant upon locale.

Parameters

None.

Examples

The code below returns the value of a locale specific string converted to upper case.




// Create a String object.
someString = new String("Learn Javascript");

// Return string value converted to locale specific upper case.
alert(someString.toLocaleUpperCase()); 



Press the button below to action the above code:


Related Tutorials

JavaScript Basic Tutorials - Lesson 8 - Strings



go to home page Homepage go to top of page Top