JavaScript String method : toLowerCase()

The toLowerCase() method returns the provided strings into lowercase letters. The syntax would be :
  newStr = str.toLowerCase();
Example :
<html>
<body>
  <script>
    var str = "THIS IS THE TEST STRING.";
    var newStr = str.toLowerCase(); 
    document.write(newStr);
  </script> 
</body>
</html>
Output :



Next Topic :