32 lines
524 B
JavaScript
32 lines
524 B
JavaScript
<<<<<<< HEAD
|
|
const repeatString = function(stringi,times) {
|
|
if(times<0){
|
|
return 'ERROR'}
|
|
else{
|
|
let i;
|
|
let res='';
|
|
for(i=0;i<times;i++){
|
|
res+=stringi;}
|
|
return res;
|
|
}
|
|
};
|
|
|
|
// Do not edit below this line
|
|
module.exports = repeatString;
|
|
=======
|
|
const repeatString = function(stringi,times) {
|
|
if(times<0){
|
|
return 'ERROR'}
|
|
else{
|
|
let i;
|
|
let res='';
|
|
for(i=0;i<times;i++){
|
|
res+=stringi;}
|
|
return res;
|
|
}
|
|
};
|
|
|
|
// Do not edit below this line
|
|
module.exports = repeatString;
|
|
>>>>>>> 4452ca004025ea5cc8dec1a281e854590f3be46e
|