Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const reverseInPlace = (text) => {
- const result = text
- .split(" ")
- .map(word => word.split("").reverse().join(""))
- .join(" ");
- console.log(result)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement