Example:
Code:

<html>
 <body>
 <script type="text/javascript"> 
{
var txt="John";
document.write(txt.toUpperCase());
}
 </script>
 </body> 
</html>

Output:JOHN

eXTReMe Tracker