Take a look at this for the solution you need.
When using javascript, ==
only compares the values without considering the type. This means that 3 and '3' are considered the same because their values are identical, even though their types are different, resulting in a true return.
===
, on the other hand, checks both the value and the type. So when comparing 3 and '3', they are considered different, leading to a false return.
var compareNumber = 8; // Code will be tested with: 3, 8, 42
var userNumber = 8; // Code will be tested with: '3' 8, 'Hi'
/* Your Response goes Here*/
if (userNumber === compareNumber) {
console.log('Numbers are identical');
} else if(userNumber == compareNumber){
console.log('Numbers are equal\nVariables are not identical');
} else {
console.log('Variables are not identical');
}