const repeatString = function(stringi,times) { if(times<0){ return 'ERROR'} else{ let i; let res=''; for(i=0;i