convert string to all caps javascript code example
Example 1: uppercase javascript
var str = "Hello World!";
var res = str.toUpperCase();
Example 2: uppercase in javascript
"foo bar!".toUpperCase();
var str = "Hello World!";
var res = str.toUpperCase();
"foo bar!".toUpperCase();