118 === 18 // true
218 === 19 // false
3`18` == 18 // true
4`18` === 18 // false
5
6// == : loose equality operator (date type IS NOT relevant)
7// === : strict equality operator (date type IS relevant)
8
9// Note: the same applies for not equal
10`18` != 18 // false
11`18` !== 18 // true
1function isSameNum(num1, num2) {
2 var num1
3 var num2
4 if ( num1 === num2 )
5 return true;
6else
7 return false;
8}