js how to determine if a string has one 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