DEV Community

loading...

Discussion on: Daily Challenge #263 - Reverse Words

Collapse
pandaa880 profile image
Prashant Chaudhari

JavaScript :

function reverseWords(str) {
  return str.split(" ").map(word => word.split("").reverse().join("")).join(" ")
}
Forem Open with the Forem app