JavaScript String toLocaleLowerCase() method

The JavaScript string toLocaleLowerCase() method transforms the given string into a lowercase letter on the basis of the current locale of the host.

Note: A string can be converted into lowercase letters with the toLowerCase() method but the result may vary according to locale or language. To overcome this problem we have to use toLocaleLowerCase().

Syntax:

string.toLocaleLowerCase() 

Return:
Locale-specific string with lowercase letters.

Example:

<!DOCTYPE html>
<html>
<body>
<script>
var a ="HELLO WORLD!";
document.write(a.toLocaleLowerCase());
</script>
</body>
</html>