programming-examples/js/String/Test whether the character at the provided character index is lower case.js
2019-11-15 12:59:38 +01:00

4 lines
169 B
JavaScript

function isLowerCaseAt(str, index) {
return str.charAt(index).toLowerCase() === str.charAt(index);
}
console.log(isLowerCaseAt ('Js STRING EXERCISES', 1));