JavaScript toUpperCase () method
Definition and Usage
toUpperCase () method is used to convert a string to uppercase.
grammar
string.toUpperCase()
Browser Support
All major browsers support toUpperCase () method
Examples
Examples
Convert a string to uppercase:
<script>
var str="Hello world!";
document.write(str.toUpperCase());
</script>
var str="Hello world!";
document.write(str.toUpperCase());
</script>
try it"
JavaScript String Object