// repeat concatenates the string n times console.log("ab".repeat(3)); console.log("-".repeat(10));
build a string by copying it