fill()

Read(2697) Label: concatenate, string,

Description:

Create a new string by concatenating strings together.

Syntax:

fill(s,n)

Note:

Get a new string by concatenating n strings together.

Parameter:

s

Source strings for generating a new string.

n

Number of source strings that constitute the new string.

Return value:

String

Example:

fill("1 ",10)

"1 1 1 1 1 1 1 1 1 1 ".

fill("a b",10)

"a ba ba ba ba ba ba ba ba ba b".