JSFiddle - React, Tailwind, and code Playground

by nevkatz

HTML

<div id="root">

</div>

JavaScript

let phrase = 'the quick brown dog is the quickest of all the dogs';
  let new_phrase = phrase.split('dog').join('cat');
  


let r = document.querySelector('#root');

r.innerHTML = new_phrase;