generate same string twice juery js code example Example: repeat js repeatStr = (n, s) => s.repeat(n);