Skip to content

REPEAT

Repeats the input string a specified number of times.

js
REPEAT(input_string, repeat_count)

Parameters

  • input_string - The string to repeat.
  • repeat_count - The number of times to repeat the string.

Examples

js
REPEAT("*", 5)

Result: *****

js
REPEAT("ab", 3)

Result: ababab