8
rated 0 times
[
9]
[
1]
/ answers: 1 / hits: 15154
/ 13 Years ago, fri, november 25, 2011, 12:00:00
There is something strange.
Why
with isNaN()
I get False
But
with parseInt()
I get NaN
?
More From » javascript
There is something strange.
Why
with isNaN()
I get False
But
with parseInt()
I get NaN
?
isNaN
takes an integer as an argument - therefore JS converts to
0
parseInt
takes a string as an argument - therefore an empty string is not a number