JSFiddle - React, Tailwind, and code Playground

by jrl2000

HTML

<span class="word" id="word5">to </span>

CSS

.cool {
  color: blue;
}

JavaScript

/* hw5.js  */
console.log('hello there')
// your solution here
var content = document.getElementById('word5');
/* content.textContent("hello yoyoy") */
content.className = 'cool'; 
// var text = content.nodeValue;
// var words = text.split(" ");

console.log(content);