javascript test if uppercase code example
Example 1: check if letter is uppercase javascript
const isUpperCase = (string) => /^[A-Z]*$/.test(string)
Example 2: check if letter is uppercase javascript
isUpperCase('A') // true
isUpperCase('a') // false