odin-javascript-exercises/03_reverseString/reverseString.js

6 lines
125 B
JavaScript
Raw Normal View History

const reverseString = function(str) {
let newStr = str.split("").reverse().join("");
};
module.exports = reverseString;