function to make string uppercase in javascript code example
Example 1: uppercase javascript
var str = "Hello World!";
var res = str.toUpperCase(); //HELLO WORLD!
Example 2: capitalize first carater js
String.prototype.capitalize = function() {
return this.charAt(0).toUpperCase() + this.slice(1)
}