Repeat String
STRING

Problem

Given a string s and an integer n, return a new string where s is repeated n times.

Examples

repeatString("a", 3) // "aaa" repeatString("b", 4) // "bbbb" repeatString("hello", 2) // "hellohello"
Loading...