I'll be brief!
-
parseInt('.3', 10)- returns
NaN
- returns
-
+'.3'- returns
0.3(aNumber)
- returns
The + operator might be slower than parseInt, but it's a bit more intuitive imo... and my goodness the title was almost as long as the article itself.
Top comments (0)