4 lines
168 B
JavaScript
4 lines
168 B
JavaScript
function isUpperCaseAt(str, index) {
|
|
return str.charAt(index).toUpperCase() === str.charAt(index);
|
|
}
|
|
console.log(isUpperCaseAt('Js STRING EXERCISES', 1)); |