to repeat a stiring in js code example
Example 1: js multiply string
let myString = 'test';
myString.repeat(3); // 'testtesttest'
Example 2: js string times
let string = 'Plumbus'
let count = 3
string.repeat(count); // -> 'PlumbusPlumbusPlumbus'