mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-12 03:06:05 +09:00
6 lines
124 B
JavaScript
6 lines
124 B
JavaScript
const reverseString = function (string) {
|
|
return string.split("").reverse().join("");
|
|
};
|
|
|
|
module.exports = reverseString;
|