Change to solution

This commit is contained in:
endritibra 2022-05-30 00:18:15 +02:00
parent 0747078d97
commit b038a3f12e
1 changed files with 10 additions and 2 deletions

View File

@ -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