JSFiddle - React, Tailwind, and code Playground

by Sergey Kulikov

JavaScript

const sentence = "Fight for simplicity";

const result = sentence.split(' ').map(r => {
 return r.split('').reverse().join('');
}).join(' ');

console.log(result);