Comparing values Ⅱ
Given two arguments, the function will compares the two arguments and determines if they are the same.
Sample Code:
function compVal(val1,val2) {
// Enter your logic here...
}
Examples:
Input: 1,2
Output: false
Explanation: 1 is not equal to 2, so return false.
Input: '1',1
Output: true
Explanation: '1' is equal to 1 after data type conversion, so it returns true.