Javascript String times(n)
String.prototype.times = function(n) { var s = ''; for (var i = 0; i < n; i++) { s += this;//from www . j a va2 s. com } return s; };