Contact: aviboots(AT)netvision.net.il
39,913 questions
51,846 answers
573 users
function createCopies(str, num) { return str.repeat(num); } let s = "xyz"; s = createCopies(s, 4); console.log(s); /* run: xyzxyzxyzxyz */