6 lines
125 B
JavaScript
6 lines
125 B
JavaScript
|
const reverseString = function(str) {
|
||
|
let newStr = str.split("").reverse().join("");
|
||
|
};
|
||
|
|
||
|
module.exports = reverseString;
|