Closed RazvanBugoi closed 2 years ago
https://www.codewars.com/kata/5dd462a573ee6d0014ce715b/train/javascript
function sameCase(a, b){ if (!a.match(/[a-zA-Z]/g) || !b.match(/[a-zA-Z]/g)) { return -1 } return a == a.toLowerCase() && b == b.toLowerCase() || a == a.toUpperCase() && b == b.toUpperCase() ? 1 : 0 }
https://www.codewars.com/kata/5dd462a573ee6d0014ce715b/train/javascript