JSFiddle - React, Tailwind, and code Playground

by Chase Wilson

JavaScript

function reverseString (str) {
  return str.split('').reverse().join('')
}

console.log(reverseString('hello there'))