Home >>JavaScript String Methods >JavaScript String toLocaleLowerCase() Method

JavaScript String toLocaleLowerCase() Method

JavaScript String toLocaleLowerCase() Method

JavaScript toLocaleLowerCase() method is used to convert a given input string to lowercase letters according to the current locale value.

Syntax:

string.toLocaleLowerCase()

Browser Support

Method Chrome Edge Firefox Safari Opera
toLocaleLowerCase() Yes Yes Yes Yes Yes

Here is an example of toLocaleLowerCase() method:

<html>
<body>
<p>Click the button to see the Output.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
  var str = "PHPTPOINT";
  var res = str.toLocaleLowerCase();
  document.getElementById("demo").innerHTML = res;
}
</script>
</body>
</html>
Output:

Click the button to see the Output.