For Hosts Locale how to convert a string to lowercase letters in JavaScript?

HTMLProgramming ScriptsJavascript

To convert a string to lowercase letters in JavaScript, use the toLocaleLowerCase() method.

Example

You can try to run the following code to learn how to work with toLocaleLowerCase() method in JavaScript −

Live Demo

<!DOCTYPE html>
<html>
   <body>
      <script>
         var a = "WELCOME!";
         document.write(a.toLocaleLowerCase());
      </script>
   </body>
</html>
raja
Published on 26-Feb-2018 06:44:15
Advertisements