Merge pull request #2 from nard0g/master

completed activities
This commit is contained in:
nard0g 2022-06-22 10:18:39 -04:00 committed by GitHub
commit 8d105cceb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
const helloWorld = function() {
return 'Hello, World!'
return 'Hello, World!';
};
module.exports = helloWorld;

View File

@ -2,9 +2,9 @@ const repeatString = function(string, num) {
let repeatedString = ''
if (num < 0) {return "ERROR"}
for (let i = 0; i < num; i++) {
repeatedString += string
repeatedString += string;
}
return repeatedString
return repeatedString;
};
// Do not edit below this line

View File

@ -3,7 +3,7 @@ const reverseString = function(string) {
for (let i = string.length - 1; i >= 0; i--) {
reversedArray.push(string[i])
}
return reversedArray.join('')
return reversedArray.join('');
};
// Do not edit below this line