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: