DEV Community

Discussion on: You should stop using `parseInt()`

Collapse
 
jessekphillips profile image
Jesse Phillips

5e2[...] Number will evaluate the whole string and return the correct value 500.

Are you saying it will return an http code of 500?

Collapse
 
darkmavis1980 profile image
Alessio Michelini

ehm, no? :D

Collapse
 
jessekphillips profile image
Jesse Phillips

Strange, it looked like something had gone horribly wrong if you got 500 out of 1506.

I can at least see how an algorithm can utilize 5, but 500 is mind-boggling wrong.