Creates a string that contains the passed string repeated a specified number of times.
JSV_replicate(expS, expN)
expS.replicate(expN)
Returns a character string that contains the specified character expression expS repeated the specified number of times indicated in expN.
The replicate function uses the following arguments.
Argument | Description |
expS | The character expression that is replicated. |
expN | The number of times the character expression expS is replicated. |
n/a
The following lines of code
var testString = "Blah ";
document.write( JSV_replicate(testString, 12) );
produce
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.