Return to Snippet

Revision: 28165
at July 2, 2010 18:52 by hand4ever


Initial Code
Number.prototype.padding = function(length){
	return '0'.times(length-(this.toString().length)) + this.toString();
};

(3).padding(3);//show:003

Initial URL

                                

Initial Description

                                

Initial Title
padding in Number

Initial Tags

                                

Initial Language
JavaScript