I have seen most of the developers using parseInt to convert a string to a number. Here we need to understand that What does this parseInt will do, what all parameters it accepts.
ParseInt will behave differently depending upon the parameters given.
for example ::
parseInt(“10″) —> Result :: 10
parseInt(“9″) —> Result :: 9
parseInt(“109″) —> Result :: 109
The above scenario is just a simple example of making mistakes. Lot of people will do this kind of mistakes without understanding the actual purpose of available functions and properties.