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