Created
May 19, 2020 11:51
-
-
Save virtualhobbit/41154c1930951b187690c061e6878277 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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