var str = "Hello World!";
var newStr = str.toUpperCase();
The result will be:
You can also capitalize only the first letter of a string or lowercase the whole string.