method in javascript to know when a string has capital letters code example
Example: regex for lowercase letters js
function hasLowerCase(str) {
return (/[a-z]/.test(str));
}
function hasLowerCase(str) {
return (/[a-z]/.test(str));
}