I have 2 variables a and b in JavaScript. I have one condition:
if(a>b){alert('error')}
This condition is working perferctly fine. But when b>=1 lakh, control is going inside if irrespective of the value of a. What can be the possible solution?
Sample code:
var a = amt1;
var b = amt2;
if(a>b){
alert('error');
}
error is thrown when b>=100000 irrespective of value of a.