Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var inc = "1";
var newNum = parseInt(inNum, 10) + parseInt(inc, 10);
if ((newNum.toString()).length < 2){
newNum = "0" + newNum;
}
return newNum;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.