loading...

re: Daily Challenge #263 - Reverse Words VIEW POST

FULL DISCUSSION
 

JavaScript :

function reverseWords(str) {
  return str.split(" ").map(word => word.split("").reverse().join("")).join(" ")
}
code of conduct - report abuse