JavaScript String method : toUpperCase()

The toUpperCase() method returns the provided strings into uppercase letters. The syntax would be :
  newStr = str.toUpperCase();
Example :
<html>
<body>
  <script>
    var str = "This is the Test String.";
    var newStr = str.toUpperCase(); 
    document.write(newStr);
  </script> 
</body>
</html>
Output :


Next Topic :