6 lines
126 B
JavaScript
6 lines
126 B
JavaScript
|
const reverseString = function (string) {
|
||
|
return string.split('').reverse().join('');
|
||
|
};
|
||
|
|
||
|
module.exports = reverseString;
|