javascript find uppercase letters in string code example
Example 1: uppercase javascript
var str = "Hello World!";
var res = str.toUpperCase(); //HELLO WORLD!
Example 2: check if letter is uppercase javascript
const isUpperCase = (string) => /^[A-Z]*$/.test(string)