JavaScript String To Lower Case

You can convert a string into lower case (all letters in small letters) with the help of toLowerCase function. The example of toLowerCase method mentioned below: Code


<html>
  <head>
    <title>toLowerCase Method Example</title>
  </head>

  <body>
    <script language='JavaScript' type='text/Javascript'>
      var greetingStr = 'Good Morning';
      var result = greetingStr.toLowerCase();
    </script>
  </body>
</html>