sprintf() and printf() in JavaScript
One of the most useful functions of any programming language is formatting
strings. This function seemed to be lacking a bit in JavaScript, so I wrote
an early implementation. I follow the same format as
PHP's
sprintf() function.
If you want printf() functionality, do a
document.write(sprintf(...)); call.