Skip to content Skip to sidebar Skip to footer

Javascript Calculator Keeps Concatenating Calculation Results With First Number Entered For Next Calculation

Solution 1:

You are concatenating strings. You should have a look at parseInt / parseFloat; watch out for the radix, otherwise JavaScript will try to guess it...


Post a Comment for "Javascript Calculator Keeps Concatenating Calculation Results With First Number Entered For Next Calculation"