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(" ")
}
 
PREVIOUS NEXT
Tagged: #reverse #word #javascript
ADD COMMENT
Topic
Name
4+9 =