Finished second exercise

This commit is contained in:
Eric Holland 2023-11-03 21:40:38 -04:00
parent 801004c680
commit 1e55ec634b
1 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
const repeatString = function() { const repeatString = function(string, repeats) {
output_str = '';
for (i = 0; i < repeats; i++) {
output_str = output_str + string;
}
return output_str;
}; };
// Do not edit below this line // Do not edit below this line