Completed the third exercise

This commit is contained in:
octopusGarden 2022-10-24 16:18:16 -04:00
parent f41af975a6
commit a4c8df3240
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
const reverseString = function() {
const reverseString = function(string) {
//Convert String to Array
//Reverse Array
return string.split('').reverse().join('').toString();
//Join & Convert to String
};
// Do not edit below this line