Strings In Depth3 / 18
Up next

Repeat

// repeat concatenates the string n times
console.log("ab".repeat(3));
console.log("-".repeat(10));
What you're solving

build a string by copying it