In Perl I can repeat a character multiple times using the syntax:
$a = \"a\" x 10; // results in \"aaaaaaaaaa\"
Is there a simple way to ac
Convenient if you repeat yourself a lot:
String.prototype.repeat = String.prototype.repeat || function(n){ n= n || 1; return Array(n+1).join(this); } alert( 'Are we there yet?\nNo.\n'.repeat(10) )