JSFiddle - React, Tailwind, and code Playground

by glee

JavaScript

var text = "Glee is very very awesome!";
    text = text.split(" ");
    var colors = ["red", "green", "rgb(0, 162, 232)"];
    for(var i = 0; i < text.length; i ++) {
        document.write('<span style = "color: ' + colors[i % 3] + '">' + text[i] + ' </span>');
    }