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