how to tell if a character is uppercase or lowercase in 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