JSFiddle - React, Tailwind, and code Playground

JavaScript

function hasLowerCase(str) {
        if(str.toUpperCase() != str) {
            return true;
        }
        return false;
    }

alert(hasLowerCase("HeLLO"));
alert(hasLowerCase("HELLO"));