Skip to content

Instantly share code, notes, and snippets.

@virtualhobbit
Created May 19, 2020 11:51
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