Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js if text contains lowercase

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

console.log("HeLLO: ", hasLowerCase("HeLLO"));
console.log("HELLO: ", hasLowerCase("HELLO"));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #text #lowercase
ADD COMMENT
Topic
Name
6+6 =