In brief
The output string remains unchanged.
Useful to know
repeat() returns a new string with a certain number of repetitions. For example, "ab ".repeat(3) gives "ababab", and repeat(0) - an empty string. Negative number or infinity lead to RangeError. [1]
For a visual retreat or a short stencil, this is a convenient operation. If the number comes from the outside, limit it before creating the result: very large text can consume unnecessary memory. A successful conversion to a number is not reason enough to assume any value. The permissible size depends on the task of the application.
Sources
For further detail and to check the information: