Why my javascript Comparison Operators code working incorrect ?
On this code requests_withdraw is 300
and money is
1200.34
but when i tested code it's will alert not enough money for withdraw
Why ? how can i do ?
<script>
reqests_withdraw = "300";
money = "1200.34";
if(reqests_withdraw > money)
{
alert("not enough money for withdraw");
}
else
{
alert("OK");
}
</script>