Advertisement
Todorov_Stanimir

Untitled

Sep 7th, 2020
942
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const reverseInPlace = (text) => {
  2.      const result = text
  3.      .split(" ")
  4.      .map(word => word.split("").reverse().join(""))
  5.      .join(" ");
  6.      console.log(result)
  7. }
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement