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

6 lines
120 B
JavaScript
Raw Normal View History

const reverseString = function(string) {
return string.split('').reverse().join('')
2017-08-17 21:19:17 +00:00
}
module.exports = reverseString