Tutorials Point


  JavaScript Basics
  JavaScript Objects
  JavaScript Advanced
  JS Useful References
  JS Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

Javascript String - toLocaleLowerCase() Method


previous next AddThis Social Bookmark Button


Advertisements

Description:

This method is used to convert the characters within a string to lower case while respecting the current locale. For most languages, this will return the same as toLowerCase.

Syntax:

string.toLocaleLowerCase( )

Here is the detail of parameters:

  • NA

Return Value:

  • A string into lower case with the current locale.

Example:

<html>
<head>
<title>JavaScript String toLocaleLowerCase() Method</title>
</head>
<body>
<script type="text/javascript">

var str = "Apples are round, and Apples are Juicy.";

document.write(str.toLocaleLowerCase( ));
</script>
</body>
</html>

This will produce following result:

apples are round, and apples are juicy.  

To understand it in better way you can Try it yourself.



previous next Printer Friendly

Advertisements


  

Advertisements