JSFiddle - React, Tailwind, and code Playground

HTML

<div class="try">
<span>G</span><span>o</span><span>d`s</span>
<span>O</span><span>w</span><span>n </span>
    
<span>C</span><span>o</span><span>u</span><span>n</span><span>t</span><span>r</span><span>y</span>

</div>

CSS

.try span:nth-of-type(even){
    color:green;
}
.try span:nth-of-type(odd){
    color:red;
}

JavaScript

How long dod this take you to change the colors of every other letter