Strings comparison
Given two strings, return true if both the given strings are equivalent to each other, regardless of their case.
Sample Code:
function compStr(str1,str2) {
// Enter your logic here...
}
Examples:
Input: 'Codetisan','codetisan'
Output: true
Explanation: The first input is equivalent to the second one, regardless of the letter case.
Input: 'code','cODde'
Output: false
Explanation: The two strings are not equivalent to each other.