Created
June 21, 2020 04:33
-
-
Save koji/dfceb4b5b3071d865ee173446a127ea3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const num = 1; | |
const ret = ( '000' + num ).slice( -3 ); | |
console.log(ret); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment