Return to Kroll Design home page

JavaScript Tutorials

 
« Return

toUppercase() method for strings

To convert a string to upper case, use the toUpperCase method.

Code:

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

Output:



 
« Return


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