String.prototype.toUpperCase() and compare it to the original.const isUpperCase = str => str === str.toUpperCase();
isUpperCase('ABC'); // true
isUpperCase('A3@$'); // true
isUpperCase('aB4'); // falseSubscribe to get resources directly to your inbox. You won't receive any spam! ✌️