DEV Community

Discussion on: 7 ways to convert a String to Number in JavaScript

Collapse
 
jgburet profile image
Jean-Guillaume Buret

You should always pass the base as second argument to parseInt.