When I try to compare two numbers using the JavaScript Number() function, it returns false for equal numbers. However, operations with a grater than (">") and "less than" ("<") return true .
var fn = 20; var sn = 20; alert(new Number(fn) === new Number(sn));
This warning returns false . Why does this not return true ?
javascript
WC Madhubhashini
source share