Created
September 24, 2013 19:56
-
-
Save kayz1/6690360 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 n = 123 | |
String("00000" + n).slice(-5); // returns 00123 | |
("00000" + n).slice(-5); // returns 00123 | |
(" " + n).slice(-5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment