First of all guess the result and then get the actual answer by clicking on the button “Show Result”
So if you are parsing the string containing integer value and fear about leading zeroes, always specify the base as shown below.
parseInt("04",10); //(here 10 is the base) parseInt("08",10);
Vishal Monpara is a full stack Solution Developer/Architect with 13 years of experience primarily using Microsoft stack. He is currently working in Retail industry and moving 1’s and 0’s from geographically dispersed hard disks to geographically dispersed user leveraging geographically dispersed team members.