Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reverse a word javascript

function reverseWords(str) {
  const allWords = str.split(" ")
  return allWords.map(item => item.split("").reverse().join("")).join(" ")
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #reverse #word #javascript
ADD COMMENT
Topic
Name
6+7 =