Return to Kroll Design home page

JavaScript Tutorials

 
« Return

toLowerCase() method for strings

To convert a string to lower case, use the toLowerCase method.

Code:

<script type="text/javascript">
//<![CDATA[
mixed_string = "New York";
var lower_string = mixed_string.toLowerCase();
document.write(lower_string);
//]]> </script>

Output:



 
« Return


©2012 Kroll Design    info@KrollDesign.net    781.910.3694
Last modified: 12/31/1969 7:00 PM