Comparing data
Write a function that receives two inputs.
Return true if both the inputs have the same value and data type.
Otherwise false.
Sample Code:
function isEqual(num1,num2) {
// Enter your logic here...
}
Examples:
Input: 3.142,3.142
Output: true
Explanation: They both have the same data type and value.
Input: 3.142,'3.142'
Output: false
Explanation: They both have a different data type.