Be Careful When You Are Using Javascript parseInt() Function

First of all guess the result and then get the actual answer by clicking on the button “Show Result” In Javascript if the string starts with “0”, the string will be parsed as if it is octal number. (i.e. base 8) instead of decimal number(i.e. base 10). So if you are parsing the string containing… Read More »