This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

toLowerCase

Summary

Converts all the alphabetic characters in a string to lowercase.

Syntax

strVariable.toLowerCase()

"String Literal".toLowerCase()

Examples

The following example demonstrates the effects of the toLowerCase method.

var str1 = "This is a STRING.";
var str2 = str1. toLowerCase();
document.write(str2);

// Output: this is a string.

Remarks

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

See also

Other articles

Attributions

  • Microsoft Developer Network: Article