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

6 lines
120 B
JavaScript

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