JavaScript toLowerCase Method
The toLowerCase method is used to convert (English) strings to lowercase and return the converted string. The syntax is as follows:
The code copy is as follows:
str_object.toLowerCase()
toLowerCase method example
The code copy is as follows:
<script language="JavaScript">
var str = "AaBbCc";
alert( str.toLowerCase() );
</script>
Run this example and the pop-up prompt box output: aabbcc
toLocaleLowerCase method
toLocaleLowerCase method toLowerCase is basically the same. toLocaleLowerCase converts strings to lowercase in a local way. Only a few languages (such as Turkish) have locally unique case mappings.