Answers for "reverse every word"

0

reverse every word

function reverseWords(str) {
  const allWords = str.split(" ")
  return allWords.map(item => item.split("").reverse().join("")).join(" ")
}
Posted by: Guest on August-17-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language