constreverseWords=(sentence)=>sentence.split("").map((word)=>[...word].reverse().join("")).join("");console.log(reverseWords("This is an example!"));console.log(reverseWords("double spaces"));
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
ES6: