1// A minified version of the other one:
2const hasLowerCase= s => s.toUpperCase() != s;
3
4console.log("HeLLO: ", hasLowerCase("HeLLO"));
5console.log("HELLO: ", hasLowerCase("HELLO"));
1function hasLowerCase(str) {
2 return str.toUpperCase() != str;
3}
4
5console.log("HeLLO: ", hasLowerCase("HeLLO"));
6console.log("HELLO: ", hasLowerCase("HELLO"));