how to check if there is a upper case javascript 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