replicate( )
Returns a string repeated a specified number of times.
Syntax
<oRef>.replicate(<expC> [, <expN>])
<oRef>
A reference to a String object.
<expC>
The string you want to repeat.
<expN>
The number of times to repeat the string; by default, 1.
Property of
String
Description
This method is almost identical to the REPLICATE( ) function, but in addition to the syntactic difference of being a method instead of a function, the repeat count is optional and defaults to 1.