odin-javascript-exercises/03_reverseString/solution/reverseString-solution.js
2022-02-20 14:07:44 -05:00

5 lines
126 B
JavaScript

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