odin-js-fundamentals-part-4/03_reverseString/solution/reverseString-solution.js

6 lines
124 B
JavaScript
Raw Permalink Normal View History

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