Repeat one complete text unit from 1 to 1,000 times with an optional separator between copies.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
An array of the requested size is filled with the complete source string and joined by the separator. Joining inserts exactly one separator between neighboring copies, so N repetitions contain N − 1 separators.
Input: - Count: 40 Separator:
----------------------------------------
Plain-text dividers use repeated dashes, boundary tests create known-length runs, and lyric drafts repeat a syllable with spaces.