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

Description

Returns the value of a string converted to lower case.

  • The string to be converted is not modified.

Syntax

Signature Description
aString.toLowerCase()Returns the value of a string converted to lower case.

Parameters

None.

Examples

The code below returns the value of a string converted to lower case.




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

// Return string value converted to lower case.
alert(someString.toLowerCase()); 



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