![]() |
VOOZH | about |
The String.prototype.toLocaleLowerCase() method in JavaScript is a Standard built-in object which returns the calling string value converted to a lowercase letter on the basis of the host's current locale.
str.toLocaleLowerCase()
str.toLocaleLowerCase(locale)
This method returns a string of lowercase letters.
This method gives two kinds of errors, which are as follows:
The below examples illustrate the String.prototype.toLocaleLowerCase() method in JavaScript:
Example 1: In this example, we will convert the uppercase string to a lowercase string and console it using the String.prototype.toLocaleLowerCase() method in JavaScript.
EN-US: geeksforgeeks TR: geeksforgeeks Result: string.prototype.tolocalelowercase()
Example 2: In this example, we will convert the uppercase string to a lowercase string and console it using the String.prototype.toLocaleLowerCase() method in JavaScript.
alphabet true false true
We have a complete list of Javascript String methods, to check those please go through this JavaScript String Complete Reference article.
The browsers supported by the String.prototype.toLocaleLowerCase() method are listed below: