odin-javascript-exercises/03_reverseString/solution/reverseString-solution.js
2023-01-21 12:53:41 -05:00

5 lines
124 B
JavaScript

const reverseString = function (string) {
return string.split("").reverse().join("");
};
module.exports = reverseString;