JSFiddle - React, Tailwind, and code Playground

by pertrai1

JavaScript

var sentence = "This could be the answer I need";

if (sentence.length > 4) {
    console.log( sentence.split('').reverse().join(''));
}