この関数は、指定された文字列を指定された回数繰り返します。
str.repeat(count)
新しい文字列を返します。
var myBook = new String("Perl"); console.log(myBook.repeat(2));
PerlPerl