Which one of these is the correct syntax of converting a string to uppercase js code example
Example: uppercase javascript
var str = "Hello World!";
var res = str.toUpperCase(); //HELLO WORLD!
var str = "Hello World!";
var res = str.toUpperCase(); //HELLO WORLD!