Description
The toUpperCase() method is used to convert a string to uppercase letters.
This method has the form:
string.toUpperCase()
Examples
The following example shows the basic use of this method.
<script>
var s = "Hello from JavaScript";
document.write(s.toUpperCase());
</script>
This produces the following result:
Browser Support
Firefox | IE | Chrome | Opera | Safari |
---|---|---|---|---|