Change to solution
This commit is contained in:
parent
0747078d97
commit
b038a3f12e
|
@ -1,5 +1,13 @@
|
|||
const repeatString = function() {
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue