CodesJava

Easy learning with example program codes

JavaScript String toLocaleLowerCase() method

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

Note: A string can be converted into lowercase letters with toLowerCase() method but 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>

Output:

hello world!
Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status