odin-default-js-exercises/reverseString/reverseString.js

6 lines
122 B
JavaScript

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