const repeatString = function(repeat,j) { if (j<0){ return 'ERROR'; }else{ var str = ''; for (var i=0; i