Reverse String Solution
This commit is contained in:
parent
888383a44e
commit
7fc7734a4a
|
@ -1,5 +1,5 @@
|
||||||
const reverseString = function() {
|
const reverseString = function(string) {
|
||||||
|
return string.split('').reverse().join('');
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = reverseString
|
module.exports = reverseString
|
||||||
|
|
Loading…
Reference in New Issue