5 lines
124 B
JavaScript
5 lines
124 B
JavaScript
const reverseString = function (string) {
|
|
return string.split("").reverse().join("");
|
|
};
|
|
|
|
module.exports = reverseString;
|