5 lines
118 B
JavaScript
5 lines
118 B
JavaScript
var reverseString = function(string) {
|
|
return string.split('').reverse().join('')
|
|
}
|
|
|
|
module.exports = reverseString
|